chore(migrations): 合并采购单号清洗与合同调拨迁移head
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
9376a7c348
commit
a0508de14f
1 file changed
+30
+30
@@ -0,0 +1,30 @@
|
||||
"""合并采购单号清洗与合同公司/在途调拨两条 Alembic 头。
|
||||
|
||||
Revision ID: mg9e8f7a6b5c4
|
||||
Revises: cp3a4b5c6d7e, mg8c7d6e5f4a3
|
||||
Create Date: 2026-09-24 22:30:00.000000
|
||||
|
||||
用途:将 ``cp3a4b5c6d7e``(清掉采购单号首尾空格和汉字)与
|
||||
``mg8c7d6e5f4a3``(合同公司账套字段 × 在途调拨术语重构)收成单一升级路径,
|
||||
避免 ``flask db upgrade`` / pre-push 因 Multiple head revisions 失败。
|
||||
依赖:``cp3a4b5c6d7e``、``mg8c7d6e5f4a3``。
|
||||
逻辑:不修改业务表,只声明两条已完成迁移线在此收敛。
|
||||
"""
|
||||
|
||||
from alembic import op # noqa: F401 - Alembic migration module contract
|
||||
|
||||
|
||||
revision = "mg9e8f7a6b5c4"
|
||||
down_revision = ("cp3a4b5c6d7e", "mg8c7d6e5f4a3")
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
"""合并采购单号清洗 head 与合同公司/在途调拨 head,不执行数据库结构变更。"""
|
||||
pass
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""撤销合并节点;不会回滚两个父分支的业务变更。"""
|
||||
pass
|
||||
Reference in new issue
Block a user