build: 修改迁移文件多head问题
This commit is contained in:
1 parent
fa5d316b25
commit
5d0a79f5fb
1 file changed
+29
@@ -0,0 +1,29 @@
|
||||
"""合并常用问题模糊匹配与库存异动自然键两条 Alembic 头。
|
||||
|
||||
backend/migrations/versions/mh23e4f5a6b7_merge_faq_fuzzy_and_ledger_heads.py
|
||||
用途:把 FAQ 模糊匹配列与库存异动外部单号自然键收成单一升级路径。
|
||||
依赖:b51c9e4a7d30、tt21c8d9e0f1a2。
|
||||
逻辑:不改业务表,只声明两条已完成迁移线在此收敛,避免 flask db upgrade 与 pre-commit 因多 head 失败。
|
||||
|
||||
Revision ID: mh23e4f5a6b7
|
||||
Revises: b51c9e4a7d30, tt21c8d9e0f1a2
|
||||
Create Date: 2026-10-23 15:05:00.000000
|
||||
"""
|
||||
|
||||
from alembic import op # noqa: F401 - Alembic migration module contract
|
||||
|
||||
|
||||
revision = "mh23e4f5a6b7"
|
||||
down_revision = ("b51c9e4a7d30", "tt21c8d9e0f1a2")
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
"""合并 FAQ 模糊匹配 head 与库存异动自然键 head,不执行数据库结构变更。"""
|
||||
pass
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""撤销合并节点;不会回滚两个父分支的业务变更。"""
|
||||
pass
|
||||
Reference in new issue
Block a user