admin/sql/migrate_t_order_batch_job_concurrency.sql
zzh c918faec97 feat(order): 订单链路演练签收 API、E2E 测试与批量任务 SQL 修复
补充链路演练模拟签收接口、E2E 主数据/菜单种子与测试项目,并修复批量任务列表 SqlSugar 查询及表结构注释脚本。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 11:32:45 +08:00

24 lines
993 B
SQL
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.

-- 已执行旧版 order_batch_job_tables.sql 的库:补 ConcurrencyStamp / PayloadJson / ResultJson
-- 若列已存在,对应 ALTER 会报错,跳过即可
-- 补列完成后执行 sql/migrate_t_order_batch_job_comments.sql 写入表/字段注释
ALTER TABLE `t_order_batch_job`
ADD COLUMN `ConcurrencyStamp` CHAR(36) NOT NULL DEFAULT '' COMMENT '并发戳' AFTER `IsDeleted`;
UPDATE `t_order_batch_job`
SET `ConcurrencyStamp` = UUID()
WHERE `ConcurrencyStamp` = '';
ALTER TABLE `t_order_batch_job_item`
ADD COLUMN `ConcurrencyStamp` CHAR(36) NOT NULL DEFAULT '' COMMENT '并发戳' AFTER `IsDeleted`;
UPDATE `t_order_batch_job_item`
SET `ConcurrencyStamp` = UUID()
WHERE `ConcurrencyStamp` = '';
ALTER TABLE `t_order_batch_job_item`
ADD COLUMN `PayloadJson` TEXT NULL COMMENT '子项入参快照(JSON)' AFTER `FailReason`;
ALTER TABLE `t_order_batch_job_item`
ADD COLUMN `ResultJson` TEXT NULL COMMENT '子项执行结果快照(JSON)' AFTER `PayloadJson`;