Files
vitfit-r2/V2/app/modules/org/migrations/016-branding-layout.js
T
2026-06-30 08:46:12 -04:00

22 lines
595 B
JavaScript

'use strict';
module.exports = {
async up(queryInterface, Sequelize) {
const cols = [
['bannerBg', Sequelize.STRING],
['drawerBg', Sequelize.STRING],
['textPrimary', Sequelize.STRING],
['textSecondary', Sequelize.STRING],
];
for (const [name, type] of cols) {
await queryInterface.addColumn('Brandings', name, { type, allowNull: true });
}
},
async down(queryInterface) {
for (const name of ['bannerBg', 'drawerBg', 'textPrimary', 'textSecondary']) {
await queryInterface.removeColumn('Brandings', name);
}
},
};