This commit is contained in:
6
migrations/000127_fix_primary_account.down.sql
Normal file
6
migrations/000127_fix_primary_account.down.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- 回滚:将所有代理账号的 is_primary 重置为 false
|
||||
-- 注意:无法精确还原哪些记录是迁移设置的,此操作会清除所有代理账号的主账号标记
|
||||
UPDATE tb_account
|
||||
SET is_primary = false
|
||||
WHERE user_type = 3
|
||||
AND deleted_at IS NULL;
|
||||
Reference in New Issue
Block a user