Merge pull request 'fix: 删除 main 上残留的重复 migration 034' (#1624) from fix/remove-duplicate-034-migration into main
CI/CD Pipeline / Build Staging API Image (push) Successful in 23m9s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Check if frontend-only change (push) Has been skipped
CI/CD Pipeline / Validate - Style (push) Successful in 4m38s
CI/CD Pipeline / Validate - Security (push) Successful in 12m55s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 7m22s
CI/CD Pipeline / Unit Tests (push) Successful in 21m31s
CI/CD Pipeline / Integration Tests (push) Successful in 6m33s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 16m58s
CI/CD Pipeline / PR Build API Image (push) Has been skipped
CI/CD Pipeline / PR Build Web Image (push) Has been skipped
CI/CD Pipeline / PR Build Worker Image (push) Has been skipped
CI/CD Pipeline / Check push changed paths (push) Successful in 1m45s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m12s
CI/CD Pipeline / Build Production API Image (push) Has been skipped
CI/CD Pipeline / Build Production Web Image (push) Has been skipped
CI/CD Pipeline / Build Production Worker 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 / CI Gate (push) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 29m8s
CI/CD Pipeline / Retag skipped Staging API Image (push) Has been skipped
CI/CD Pipeline / Retag skipped Staging Web Image (push) Has been skipped
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 4m38s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1m19s
CI/CD Pipeline / Canary Release to Production (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1m36s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 2m56s

This commit was merged in pull request #1624.
This commit is contained in:
2026-09-02 11:29:24 +08:00
2 changed files with 1 additions and 60 deletions
+1
View File
@@ -0,0 +1 @@
retrigger3
@@ -1,60 +0,0 @@
"""Add confirm generation fields
Revision ID: 034
Revises: 033
Create Date: 2026-07-08
确认生成 API 改造:为 generation_tasks 表添加 is_preview、source_task_id、
output_width、output_height、cover_url、custom_title 字段。
"""
import sqlalchemy as sa
from alembic import op
revision = "034"
down_revision = "033"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.add_column(
"generation_tasks",
sa.Column("is_preview", sa.Boolean(), nullable=False, server_default=sa.true()),
)
op.add_column(
"generation_tasks",
sa.Column("source_task_id", sa.String(32), nullable=False, server_default=""),
)
op.add_column(
"generation_tasks",
sa.Column("output_width", sa.Integer(), nullable=False, server_default=sa.text("1280")),
)
op.add_column(
"generation_tasks",
sa.Column("output_height", sa.Integer(), nullable=False, server_default=sa.text("720")),
)
op.add_column(
"generation_tasks",
sa.Column("cover_url", sa.String(1000), nullable=False, server_default=""),
)
op.add_column(
"generation_tasks",
sa.Column("custom_title", sa.String(500), nullable=False, server_default=""),
)
op.create_index(
op.f("ix_generation_tasks_source_task_id"),
"generation_tasks",
["source_task_id"],
)
def downgrade() -> None:
op.drop_index(op.f("ix_generation_tasks_source_task_id"), table_name="generation_tasks")
op.drop_column("generation_tasks", "custom_title")
op.drop_column("generation_tasks", "cover_url")
op.drop_column("generation_tasks", "output_height")
op.drop_column("generation_tasks", "output_width")
op.drop_column("generation_tasks", "source_task_id")
op.drop_column("generation_tasks", "is_preview")