admin/sql/migrate_t_customer_account_flow_concurrency.sql
2026-06-27 11:56:06 +08:00

9 lines
431 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.

-- 已执行旧版 migrate_t_customer_account_flow.sql 的库补 ConcurrencyStamp(与 AggregateRoot 实体对齐)
-- 勿在 ALTER 中使用 DEFAULT(UUID()),复制环境会报 Error 1674
ALTER TABLE `t_customer_account_flow`
ADD COLUMN `ConcurrencyStamp` char(36) NOT NULL DEFAULT '' COMMENT '并发戳' AFTER `IsDeleted`;
UPDATE `t_customer_account_flow`
SET `ConcurrencyStamp` = UUID()
WHERE `ConcurrencyStamp` = '';