feat: 数据管线架构优化 + 前端部署配置
- Bronze 层 RawEvent 表(原始事件存档) - IngestFailure 死信表(失败持久化+重试) - DataQualityCheck 数据质量监控 - DataLineage 血缘追踪 - MatchStats xG 追踪字段 - Nginx 前端服务配置
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
"""为 MatchStats 添加 xG 追踪字段
|
||||
|
||||
Revision ID: 0009_match_stats_xg_fields
|
||||
Revises: 0008_raw_event_and_ingest_failure
|
||||
Create Date: 2026-09-17
|
||||
|
||||
"""
|
||||
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
revision: str = '0009_match_stats_xg_fields'
|
||||
down_revision: Union[str, None] = '0008_raw_event_and_ingest_failure'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.add_column('match_stats', sa.Column('xg_source', sa.String(30), nullable=True))
|
||||
op.add_column('match_stats', sa.Column('xg_updated_at', sa.DateTime(timezone=True), nullable=True))
|
||||
op.add_column('match_stats', sa.Column('xg_source_record_id', sa.String(100), nullable=True))
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_column('match_stats', 'xg_source_record_id')
|
||||
op.drop_column('match_stats', 'xg_updated_at')
|
||||
op.drop_column('match_stats', 'xg_source')
|
||||
Reference in New Issue
Block a user