chore(migrations): 合并设备验收与调拨两条迁移头
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
fc42bb14c9
commit
43dceaf027
1 file changed
+30
+30
@@ -0,0 +1,30 @@
|
||||
"""合并设备验收发送归档与调拨类型列宽两条 Alembic 头。
|
||||
|
||||
Revision ID: mh15f6a7b8c9
|
||||
Revises: eah8c9d0e1f2, tt13d4e5f6a7b8
|
||||
Create Date: 2026-10-15 13:20:00.000000
|
||||
|
||||
用途:将 ``eah8c9d0e1f2``(设备验收企微事件、第 4 轮开关与 Excel 归档)与
|
||||
``tt13d4e5f6a7b8``(transfer_runs.transfer_type 放宽至 String(64))
|
||||
收成单一升级路径,避免 ``flask db upgrade`` / pre-push 因多 head 失败。
|
||||
依赖:``eah8c9d0e1f2``、``tt13d4e5f6a7b8``。
|
||||
逻辑:不修改业务表,只声明两条已完成迁移线在此收敛。
|
||||
"""
|
||||
|
||||
from alembic import op # noqa: F401 - Alembic migration module contract
|
||||
|
||||
|
||||
revision = "mh15f6a7b8c9"
|
||||
down_revision = ("eah8c9d0e1f2", "tt13d4e5f6a7b8")
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
"""合并设备验收 head 与调拨类型列宽 head,不执行数据库结构变更。"""
|
||||
pass
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""撤销合并节点;不会回滚两个父分支的业务变更。"""
|
||||
pass
|
||||
Reference in new issue
Block a user