fix(alembic): 053 down_revision 笔误修正
down_revision 之前误写为文件名 '052_diagnostic_queue_quiz_closing', 应为 052 迁移的实际 revision id '052_diag_queue_quiz'。 影响范围: - alembic history 直接抛 KeyError: '052_diagnostic_queue_quiz_closing' - 任何 alembic upgrade / stamp head 操作均无法解析完整链 - 之前未被发现的根因:生产 alembic_version 长期停在 052,从未尝试解析后续链 验证(生产环境 2026-08-03 17:03 P1 治理任务): - 修复前:alembic history → KeyError - 修复后:052 → 053 → 054 → 055 → 056(moderation) → 057 链完整解析 - alembic stamp 057_troubleshooting_templates 已成功执行 - 数据库实际状态确认:conversations.is_archived / messages.reply_source / quick_rules / sensitive_words / privacy_patterns / moderation_logs / troubleshooting_templates 均已存在,迁移链与数据库一致
This commit is contained in:
@@ -11,7 +11,7 @@ import sqlalchemy as sa
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '053_add_archive_fields'
|
||||
down_revision = '052_diagnostic_queue_quiz_closing'
|
||||
down_revision = '052_diag_queue_quiz'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user