"""Make Discount.stripe_coupon_id nullable

Revision ID: b3e39dadb512
Revises: b3887f09f522
Create Date: 2025-12-16 10:06:48.133052

"""

import sqlalchemy as sa
from alembic import op

# Polar Custom Imports

# revision identifiers, used by Alembic.
revision = "b3e39dadb512"
down_revision = "b3887f09f522"
branch_labels: tuple[str] | None = None
depends_on: tuple[str] | None = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "discounts", "stripe_coupon_id", existing_type=sa.VARCHAR(), nullable=True
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "discounts", "stripe_coupon_id", existing_type=sa.VARCHAR(), nullable=False
    )
    # ### end Alembic commands ###
