Files
beige/backend/alembic/versions/005_product_image_path.py
yangqianqian 6a2632da70 baseline: Clover 独立仓库首次基线提交
将 Clover 从上层产品包旧仓库中独立出来,建立专属版本控制。
当前状态=纵切片端到端已打通(登录→选品→出文出图→审核→下载包),
M1文案质量去套路化已验收。此提交作为后续按核销清单逐条修复的基线。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 11:30:22 +08:00

28 lines
698 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""005_product_image_path — products 表加 image_path 列(产品参考图本地路径)
前端图片上传完成后BE 接口写入此字段pipeline_io 读取用于生图参考。
"""
from alembic import op
import sqlalchemy as sa
revision = "005"
down_revision = "004"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.add_column(
"products",
sa.Column(
"image_path",
sa.String(512),
nullable=True,
comment="产品参考图本地文件路径(前端上传后写入,生图时作 reference_images 注入)",
),
)
def downgrade() -> None:
op.drop_column("products", "image_path")