将 Clover 从上层产品包旧仓库中独立出来,建立专属版本控制。 当前状态=纵切片端到端已打通(登录→选品→出文出图→审核→下载包), M1文案质量去套路化已验收。此提交作为后续按核销清单逐条修复的基线。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
33 lines
736 B
Python
33 lines
736 B
Python
"""add brand_keyword to products
|
||
|
||
Revision ID: 008
|
||
Revises: 007
|
||
Create Date: 2026-06-13
|
||
|
||
第5环品牌词字段:客户输入,植入文案每条+生图特写图(第2/6张)。
|
||
brand_keyword 是产品级字段,随产品固定,由客户录入(非AI生成)。
|
||
"""
|
||
from alembic import op
|
||
import sqlalchemy as sa
|
||
|
||
revision = "008"
|
||
down_revision = "007"
|
||
branch_labels = None
|
||
depends_on = None
|
||
|
||
|
||
def upgrade():
|
||
op.add_column(
|
||
"products",
|
||
sa.Column(
|
||
"brand_keyword",
|
||
sa.String(64),
|
||
nullable=True,
|
||
comment="品牌词(客户输入,植入文案每条+生图特写图第2/6张)",
|
||
),
|
||
)
|
||
|
||
|
||
def downgrade():
|
||
op.drop_column("products", "brand_keyword")
|