"""Add doc_url and author to BoundRegistryAction

Revision ID: 9194fb66b4ea
Revises: f2e840c9fb2c
Create Date: 2025-01-06 20:10:46.871277

"""

from collections.abc import Sequence

import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision: str = "9194fb66b4ea"
down_revision: str | None = "f2e840c9fb2c"
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("doc_url", sa.String(), nullable=True),
    )
    op.add_column(
        "registryaction",
        sa.Column("author", sa.String(), nullable=True),
    )
    # ### end Alembic commands ###


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