25 lines
792 B
JavaScript
25 lines
792 B
JavaScript
'use strict';
|
||
|
||
module.exports = {
|
||
async up(queryInterface, Sequelize) {
|
||
await queryInterface.addColumn('wms_stock_warehouse', 'pick_recheck_requirements', {
|
||
type: Sequelize.TEXT,
|
||
allowNull: true,
|
||
comment: '拣货眼球复核要求',
|
||
after: 'packing_requirements',
|
||
});
|
||
await queryInterface.addColumn('wms_stock_warehouse', 'three_in_one_switch', {
|
||
type: Sequelize.CHAR(1),
|
||
allowNull: false,
|
||
defaultValue: 'Y',
|
||
comment: '三合一开关:Y=开启,N=关闭',
|
||
after: 'pick_recheck_requirements',
|
||
});
|
||
},
|
||
|
||
async down(queryInterface) {
|
||
await queryInterface.removeColumn('wms_stock_warehouse', 'three_in_one_switch');
|
||
await queryInterface.removeColumn('wms_stock_warehouse', 'pick_recheck_requirements');
|
||
},
|
||
};
|