"""license key activation metadata

Revision ID: da4a22a5134f
Revises: 09c91e1d4dec
Create Date: 2024-08-19 23:51:39.058531

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql

# Polar Custom Imports

# revision identifiers, used by Alembic.
revision = "da4a22a5134f"
down_revision = "09c91e1d4dec"
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(
        "license_key_activations",
        sa.Column("meta", postgresql.JSONB(astext_type=sa.Text()), nullable=False),
    )
    # ### end Alembic commands ###


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