feat(in-transit-transfer): 收料成功同步调拨证据并落库调用日志留档
- 新增 evidence_sync:收料归档 success 终态桥接触发调拨证据同步,桥内异常只记日志不回滚归档终态 - 迁移 wd7e:integration_calls 新增 wire_json 线级事实留档与 business_ref 业务锚点列,完成调用日志闭环 - receipt_report_storage 在 success 分支挂接同步桥,收料链路正确性不受桥内异常影响 - 同步 demand/funclist/technical 跨域文档与证据同步实施计划 - test(sso):旧 Redis 协议下线断言由 tickets 改用 orders 端点措辞
This commit is contained in:
1 parent
9f2b023a10
commit
5412ddc7a8
9 files changed
+2216
-27
No files matched your search
@@ -0,0 +1,35 @@
|
||||
"""Add integration_calls.wire_json.
|
||||
|
||||
Revision ID: wd7e8f9a0b1c
|
||||
Revises: tt1a2b3c4d5e6f
|
||||
Create Date: 2026-09-27 00:00:00.000000
|
||||
|
||||
用途:集成调用审计增列 wire_json(传输层线级事实)与 business_ref(通用业务
|
||||
锚点:调用方透传的业务单号/任务号,能力无关,不传为 NULL)。
|
||||
依赖:integration_calls 表。
|
||||
逻辑:均可空;历史行保持 NULL(前端如实展示「无线级详情」,不回填)。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
revision = "wd7e8f9a0b1c"
|
||||
down_revision = "tt1a2b3c4d5e6f"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.add_column("integration_calls", sa.Column("wire_json", sa.JSON(), nullable=True))
|
||||
op.add_column("integration_calls",
|
||||
sa.Column("business_ref", sa.String(length=128), nullable=True))
|
||||
op.create_index("ix_integration_calls_business_ref", "integration_calls", ["business_ref"])
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_index("ix_integration_calls_business_ref", table_name="integration_calls")
|
||||
op.drop_column("integration_calls", "business_ref")
|
||||
op.drop_column("integration_calls", "wire_json")
|
||||
Reference in new issue
Block a user