chore: 补充换货原因长度放宽迁移 000270

生产库与测试库已手动执行,迁移重复执行结果不变;回滚不缩短长度,避免截断已有数据。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
邹进
2026-11-03 11:15:39 +09:00
parent afc7e5285e
commit b3f66a01a8
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
-- 回滚 000270:不缩回 varchar(100)。
-- 放宽后可能已写入超过 100 字的换货原因,缩短长度会失败或需要截断历史数据;需要时由维护者评估后手工处理。
SELECT 1;

View File

@@ -0,0 +1,4 @@
-- 换货原因长度上限从 100 放宽到 500(与创建换货单请求校验一致)。
-- 生产库与测试库已于 2026-11-03 手动执行同一语句;重复执行结果不变。
-- varchar 加长只改元数据,不重写表。
ALTER TABLE tb_exchange_order ALTER COLUMN exchange_reason TYPE varchar(500);