981d965d89
CI/CD Pipeline / Check if frontend-only change (push) Has been skipped
CI/CD Pipeline / Build Production API Image (push) Has been skipped
CI/CD Pipeline / Build Production Worker Image (push) Has been skipped
CI/CD Pipeline / Build Production Web Image (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Build Staging Web Image (push) Successful in 48s
CI/CD Pipeline / Frontend Lint (push) Successful in 3m18s
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 5m42s
CI/CD Pipeline / Unit Tests (push) Successful in 6m2s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 6m13s
CI/CD Pipeline / Integration Tests (push) Successful in 2m14s
CI/CD Pipeline / Build Staging API Image (push) Successful in 16m6s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 17m8s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 59s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 36s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 59s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m11s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
38 lines
864 B
Python
Executable File
38 lines
864 B
Python
Executable File
"""Phase 3 - 清理 EditPlan 表冗余字段
|
|
|
|
Revision ID: 048
|
|
Revises: 047
|
|
Create Date: 2026-07-21
|
|
|
|
Changes:
|
|
1. 删除 edit_plans.result_count 字段(剪辑计划独立功能遗留,模板草稿不用,
|
|
生成结果数由 generation_tasks.result_count 承载)
|
|
"""
|
|
|
|
import sqlalchemy as sa
|
|
|
|
from alembic import op
|
|
|
|
revision = "048_cleanup_result_count"
|
|
down_revision = "047_template_versioning"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# 删除 result_count 字段(剪辑计划独立功能遗留字段)
|
|
op.drop_column("edit_plans", "result_count")
|
|
|
|
|
|
def downgrade() -> None:
|
|
# 回滚:恢复 result_count 字段,默认值 0
|
|
op.add_column(
|
|
"edit_plans",
|
|
sa.Column(
|
|
"result_count",
|
|
sa.Integer,
|
|
nullable=False,
|
|
server_default="0",
|
|
),
|
|
)
|