"""add payment_lock_acquired_at to order

Revision ID: beaaa1a657d1
Revises: 9930ccaa979a
Create Date: 2025-07-22 17:57:37.599344

"""

import sqlalchemy as sa
from alembic import op

# Polar Custom Imports

# revision identifiers, used by Alembic.
revision = "beaaa1a657d1"
down_revision = "9930ccaa979a"
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(
        "orders",
        sa.Column(
            "payment_lock_acquired_at", sa.TIMESTAMP(timezone=True), nullable=True
        ),
    )
    # ### end Alembic commands ###


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