'use strict'; const TABLE_NAME = 'wms_store_express_binding_policy'; module.exports = { up: async (queryInterface, Sequelize) => { await queryInterface.removeColumn(TABLE_NAME, 'cities'); await queryInterface.removeColumn(TABLE_NAME, 'provinces'); await queryInterface.addColumn(TABLE_NAME, 'regions', { type: Sequelize.TEXT, allowNull: true, comment: '限定地区,逗号分隔,如"广东省,广州市,深圳市",NULL=不限制', after: 'is_enabled', }); }, down: async (queryInterface, Sequelize) => { await queryInterface.removeColumn(TABLE_NAME, 'regions'); await queryInterface.addColumn(TABLE_NAME, 'provinces', { type: Sequelize.TEXT, allowNull: true, comment: '限定省份', }); await queryInterface.addColumn(TABLE_NAME, 'cities', { type: Sequelize.TEXT, allowNull: true, comment: '限定城市', }); }, };