"""Add deprecated field to BoundRegistryAction

Revision ID: 849db8d3b59d
Revises: 496c162975d7
Create Date: 2025-01-14 19:31:21.421984

"""

from collections.abc import Sequence

import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision: str = "849db8d3b59d"
down_revision: str | None = "496c162975d7"
branch_labels: str | Sequence[str] | None = None
depends_on: str | Sequence[str] | None = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "registryaction",
        sa.Column("deprecated", sa.String(), nullable=True),
    )
    # ### end Alembic commands ###


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