"""Add BillingEntry amount and currency

Revision ID: 4429c2ac7bc8
Revises: 795c209e28a7
Create Date: 2025-07-03 09:52:53.025820

"""

import sqlalchemy as sa
from alembic import op

# Polar Custom Imports

# revision identifiers, used by Alembic.
revision = "4429c2ac7bc8"
down_revision = "795c209e28a7"
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("billing_entry", sa.Column("amount", sa.Integer(), nullable=True))
    op.add_column(
        "billing_entry", sa.Column("currency", sa.String(length=3), nullable=True)
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("billing_entry", "currency")
    op.drop_column("billing_entry", "amount")
    # ### end Alembic commands ###
