chore(migrations): 合并合同公司与在途调拨匹配迁移head
This commit is contained in:
1 parent
59b37422ab
commit
54a4114daa
1 file changed
+30
+30
@@ -0,0 +1,30 @@
|
||||
"""合并合同公司账套字段与在途调拨术语重构两条 Alembic 头。
|
||||
|
||||
Revision ID: mg8c7d6e5f4a3
|
||||
Revises: cp2f3a4b5c6d, rn1a2b3c4d5e6
|
||||
Create Date: 2026-09-24 10:00:00.000000
|
||||
|
||||
用途:将 ``cp2f3a4b5c6d``(采购合同请款按公司查不同账套)与
|
||||
``rn1a2b3c4d5e6``(在途调拨预检术语重构为匹配)收成单一升级路径,
|
||||
避免 ``flask db upgrade`` / pre-commit 因 Multiple head revisions 失败。
|
||||
依赖:``cp2f3a4b5c6d``、``rn1a2b3c4d5e6``。
|
||||
逻辑:不修改业务表,只声明两条已完成迁移线在此收敛。
|
||||
"""
|
||||
|
||||
from alembic import op # noqa: F401 - Alembic migration module contract
|
||||
|
||||
|
||||
revision = "mg8c7d6e5f4a3"
|
||||
down_revision = ("cp2f3a4b5c6d", "rn1a2b3c4d5e6")
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
"""合并合同公司 head 与在途调拨匹配 head,不执行数据库结构变更。"""
|
||||
pass
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""撤销合并节点;不会回滚两个父分支的业务变更。"""
|
||||
pass
|
||||
Reference in new issue
Block a user