WMS_MAIN/database/migrations/20260929150000-add-pick-recheck-requirements-and-three-in-one-switch.js

25 lines
792 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'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');
},
};