mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.addColumn('notification_broadcasts', 'color', {
|
|
type: Sequelize.STRING(20),
|
|
allowNull: false,
|
|
defaultValue: 'indigo',
|
|
});
|
|
|
|
await queryInterface.addColumn('notification_broadcasts', 'link_label', {
|
|
type: Sequelize.STRING(60),
|
|
allowNull: true,
|
|
});
|
|
|
|
await queryInterface.addColumn('admin_notifications', 'color', {
|
|
type: Sequelize.STRING(20),
|
|
allowNull: false,
|
|
defaultValue: 'indigo',
|
|
});
|
|
|
|
await queryInterface.addColumn('user_notifications', 'color', {
|
|
type: Sequelize.STRING(20),
|
|
allowNull: false,
|
|
defaultValue: 'indigo',
|
|
});
|
|
},
|
|
|
|
async down(queryInterface) {
|
|
await queryInterface.removeColumn('user_notifications', 'color');
|
|
await queryInterface.removeColumn('admin_notifications', 'color');
|
|
await queryInterface.removeColumn('notification_broadcasts', 'link_label');
|
|
await queryInterface.removeColumn('notification_broadcasts', 'color');
|
|
},
|
|
};
|