Files
starr-philproperties/apps/api/database/migrations/20270101000081-add-tier-plans-audit-columns.js

16 lines
641 B
JavaScript

'use strict';
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn('tier_plans', 'createdBy', { type: Sequelize.BIGINT, allowNull: true });
await queryInterface.addColumn('tier_plans', 'updatedBy', { type: Sequelize.BIGINT, allowNull: true });
await queryInterface.addColumn('tier_plans', 'deletedBy', { type: Sequelize.BIGINT, allowNull: true });
},
async down(queryInterface) {
await queryInterface.removeColumn('tier_plans', 'createdBy');
await queryInterface.removeColumn('tier_plans', 'updatedBy');
await queryInterface.removeColumn('tier_plans', 'deletedBy');
},
};