"""Drop features_synced_at from products (STORY-062)

Revision ID: c322bcc06196
Revises: c121c1ca7215
Create Date: 2025-11-27 03:01:50.552993

"""

from collections.abc import Sequence

import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision: str = "c322bcc06196"
down_revision: str | Sequence[str] | None = "c121c1ca7215"
branch_labels: str | Sequence[str] | None = None
depends_on: str | Sequence[str] | None = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table("products", schema=None) as batch_op:
        batch_op.drop_column("features_synced_at")

    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table("products", schema=None) as batch_op:
        batch_op.add_column(sa.Column("features_synced_at", sa.DATETIME(), nullable=True))

    # ### end Alembic commands ###
