WMS_MAIN/database/migrations/20260718180000-remove-zerofill-from-wms-receiving-detail-creator-id.js
liufumingren 3c53b3c8fa feat(storage): 入库/收货模块货主侧功能 (listStore, export)
- entry: 新增 listStore(货主维度列表)、export/exportTaskProgress(异步导出)

- entry: 新增 storeExport/storeExportTaskProgress(货主侧导出)

- receiving: 新增 getStoreReceivingList(货主维度收货单查询)

- receiving: 新增 export 异步导出 + fix 时间字段 created_at→updated_at

- 迁移: receiving_detail creator_id 去 zerofill + 货主收货权限
2026-07-27 03:47:49 +08:00

18 lines
565 B
JavaScript

'use strict';
module.exports = {
async up(queryInterface, Sequelize) {
// 去掉 creator_id 列的 ZEROFILL 属性,避免零填充字符串导致查询匹配问题
await queryInterface.sequelize.query(
'ALTER TABLE wms_receiving_detail MODIFY COLUMN creator_id bigint(20) unsigned NOT NULL'
);
},
async down(queryInterface, Sequelize) {
// 回滚:恢复 ZEROFILL 属性
await queryInterface.sequelize.query(
'ALTER TABLE wms_receiving_detail MODIFY COLUMN creator_id bigint(20) unsigned zerofill NOT NULL'
);
},
};