mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
16 lines
641 B
JavaScript
16 lines
641 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.addColumn('categories', 'createdBy', { type: Sequelize.BIGINT, allowNull: true });
|
|
await queryInterface.addColumn('categories', 'updatedBy', { type: Sequelize.BIGINT, allowNull: true });
|
|
await queryInterface.addColumn('categories', 'deletedBy', { type: Sequelize.BIGINT, allowNull: true });
|
|
},
|
|
|
|
async down(queryInterface) {
|
|
await queryInterface.removeColumn('categories', 'createdBy');
|
|
await queryInterface.removeColumn('categories', 'updatedBy');
|
|
await queryInterface.removeColumn('categories', 'deletedBy');
|
|
},
|
|
};
|