@tomei/live-price
Version:
Tomei live-price Package
28 lines (20 loc) • 854 B
JavaScript
;
module.exports = {
async up(queryInterface, Sequelize) {
const tableDescription = await queryInterface.describeTable('price_CompanyFeedAccess');
if (!tableDescription.PricingLogic) {
await queryInterface.addColumn('price_CompanyFeedAccess', 'PricingLogic', {
type: Sequelize.ENUM('SELL_BUY_SELL', 'BUY_BUY_SELL'),
allowNull: false,
defaultValue: 'SELL_BUY_SELL',
after: 'IsActiveYN'
});
}
},
async down(queryInterface, Sequelize) {
const tableDescription = await queryInterface.describeTable('price_CompanyFeedAccess');
if (tableDescription.PricingLogic) {
await queryInterface.removeColumn('price_CompanyFeedAccess', 'PricingLogic');
}
}
};