"""Remove product_slug from product_likes

Revision ID: remove_product_slug_20251107
Revises: 0d767ad92dd7
Create Date: 2025-11-07

"""
from alembic import op
import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = 'remove_product_slug_20251107'
down_revision = '20251107_add_missing_indexes'
branch_labels = None
depends_on = None


def upgrade() -> None:
    with op.batch_alter_table("product_likes") as batch_op:
        batch_op.drop_column("product_slug")


def downgrade() -> None:
    with op.batch_alter_table("product_likes") as batch_op:
        batch_op.add_column(sa.Column(
            "product_slug",
            sa.String(length=255),
            nullable=False,
        ))