"""Add OAuth2 ACR

Revision ID: 3802b2aa320c
Revises: 090eca184ce0
Create Date: 2025-08-14 09:29:08.351777

"""

import sqlalchemy as sa
from alembic import op

# Polar Custom Imports

# revision identifiers, used by Alembic.
revision = "3802b2aa320c"
down_revision = "090eca184ce0"
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(
        "oauth2_authorization_codes", sa.Column("acr", sa.Text(), nullable=True)
    )
    op.add_column(
        "oauth2_authorization_codes", sa.Column("amr", sa.Text(), nullable=True)
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("oauth2_authorization_codes", "amr")
    op.drop_column("oauth2_authorization_codes", "acr")
    # ### end Alembic commands ###
