"""products_drop_subtitle

Revision ID: 009
Revises: 008
Create Date: 2026-05-16 00:00:00.000000

去掉 products.subtitle（前端 UI 改造后不再展示副标题）。
"""
from typing import Sequence, Union

import sqlalchemy as sa
from alembic import op

revision: str = "009"
down_revision: Union[str, None] = "008"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.drop_column("products", "subtitle")


def downgrade() -> None:
    op.add_column("products", sa.Column("subtitle", sa.String(length=200), nullable=True))
