"""Add CustomerSession.return_url and Checkout.return_url

Revision ID: 244e5c74a471
Revises: 6d3526688821
Create Date: 2025-10-15 15:57:01.049130

"""

import sqlalchemy as sa
from alembic import op

# Polar Custom Imports

# revision identifiers, used by Alembic.
revision = "244e5c74a471"
down_revision = "6d3526688821"
branch_labels: tuple[str] | None = None
depends_on: tuple[str] | None = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column("checkouts", sa.Column("return_url", sa.String(), nullable=True))
    op.add_column(
        "customer_sessions", sa.Column("return_url", sa.String(), nullable=True)
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("customer_sessions", "return_url")
    op.drop_column("checkouts", "return_url")
    # ### end Alembic commands ###
