22 lines
595 B
JavaScript
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);
|
|
}
|
|
},
|
|
};
|