chore: 补充换货原因长度放宽迁移 000270
生产库与测试库已手动执行,迁移重复执行结果不变;回滚不缩短长度,避免截断已有数据。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
3
migrations/000270_widen_exchange_reason.down.sql
Normal file
3
migrations/000270_widen_exchange_reason.down.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- 回滚 000270:不缩回 varchar(100)。
|
||||
-- 放宽后可能已写入超过 100 字的换货原因,缩短长度会失败或需要截断历史数据;需要时由维护者评估后手工处理。
|
||||
SELECT 1;
|
||||
4
migrations/000270_widen_exchange_reason.up.sql
Normal file
4
migrations/000270_widen_exchange_reason.up.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
-- 换货原因长度上限从 100 放宽到 500(与创建换货单请求校验一致)。
|
||||
-- 生产库与测试库已于 2026-11-03 手动执行同一语句;重复执行结果不变。
|
||||
-- varchar 加长只改元数据,不重写表。
|
||||
ALTER TABLE tb_exchange_order ALTER COLUMN exchange_reason TYPE varchar(500);
|
||||
Reference in New Issue
Block a user