fix: config.0006 半路失败恢复命令 recover_config_0006

This commit is contained in:
XingQue
2026-06-24 05:27:45 +08:00
parent a8b6e46f61
commit 5c4663c8ec
2 changed files with 111 additions and 2 deletions

View File

@@ -1,5 +1,10 @@
-- 部署 jituan 前若 migrate 报 Duplicate entry 唯一约束冲突,在 dbshell 执行
-- 每种组合只保留 id 最大的一条;不影响订单/资金主表。
-- 部署 jituan 前若 migrate 报 Duplicate entry 唯一约束冲突时使用
-- 不要用 mysql 命令行1Panel MySQL 不在本机 socket请用
-- python manage.py dbshell < deploy/pre_migrate_dedupe.sql
-- 或半路失败的 config.0006
-- python manage.py recover_config_0006
-- python manage.py migrate config 0006 --fake
-- python manage.py migrate
-- config.0006 tupianpeizhi
DELETE FROM tupianpeizhi