- app/model/store.js、app/service/systems/store.js、app/service/systems/store_warehouse.js:移除 logo_url/domain 字段定义与创建写入,app/ 下无残留引用 - database/migrations/20260907140000-drop-logo-url-and-domain-from-wms-store.js:删除 wms_store 的 logo_url、domain 两列(开发库已执行完成)
23 lines
573 B
JavaScript
23 lines
573 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
async up(queryInterface) {
|
|
await queryInterface.removeColumn('wms_store', 'logo_url');
|
|
await queryInterface.removeColumn('wms_store', 'domain');
|
|
},
|
|
|
|
async down(queryInterface, Sequelize) {
|
|
const { STRING } = Sequelize;
|
|
await queryInterface.addColumn('wms_store', 'logo_url', {
|
|
type: STRING(255),
|
|
allowNull: true,
|
|
comment: 'logo链接',
|
|
});
|
|
await queryInterface.addColumn('wms_store', 'domain', {
|
|
type: STRING(100),
|
|
allowNull: true,
|
|
comment: '绑定域名',
|
|
});
|
|
},
|
|
};
|