mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
16 lines
414 B
JavaScript
16 lines
414 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
await queryInterface.addColumn('users', 'needs_intro', {
|
|
type: Sequelize.BOOLEAN,
|
|
allowNull: false,
|
|
defaultValue: false, // existing users skip intro
|
|
after: 'acc_type',
|
|
});
|
|
},
|
|
down: async (queryInterface) => {
|
|
await queryInterface.removeColumn('users', 'needs_intro');
|
|
},
|
|
};
|