"""Rename Checkout.customer_external_id to external_customer_id

Revision ID: 46b68109883f
Revises: 73171002f840
Create Date: 2025-06-18 13:46:32.020643

"""

import sqlalchemy as sa
from alembic import op

# Polar Custom Imports

# revision identifiers, used by Alembic.
revision = "46b68109883f"
down_revision = "73171002f840"
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(
        "checkouts", "customer_external_id", new_column_name="external_customer_id"
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "checkouts", "external_customer_id", new_column_name="customer_external_id"
    )
    # ### end Alembic commands ###
