"""Make Order.product nullable

Revision ID: 83351cd2dc0f
Revises: bbdc673dc236
Create Date: 2025-10-22 14:09:49.337604

"""

import sqlalchemy as sa
from alembic import op

# Polar Custom Imports

# revision identifiers, used by Alembic.
revision = "83351cd2dc0f"
down_revision = "bbdc673dc236"
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("orders", "product_id", existing_type=sa.UUID(), nullable=True)
    # ### end Alembic commands ###


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