'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'); }, };