Files
junhong_cmp_fiber/migrations/archive/000113_migrate_commission_status.up.sql

6 lines
308 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.
-- 迁移佣金记录状态值:将旧常量值迁移到新四态常量值
-- 旧值 1已入账 → 新值 3已发放
-- 旧值 2已失效 → 新值 4已失效
UPDATE tb_commission_record SET status = 3 WHERE status = 1;
UPDATE tb_commission_record SET status = 4 WHERE status = 2;