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