"""add_rejection_reason_to_bugs

Revision ID: f63655d178ae
Revises: ec0a2f912117
Create Date: 2025-11-30 01:39:53.276571

"""

from collections.abc import Sequence

import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision: str = "f63655d178ae"  # pragma: allowlist secret
down_revision: str | Sequence[str] | None = "ec0a2f912117"  # pragma: allowlist secret
branch_labels: str | Sequence[str] | None = None
depends_on: str | Sequence[str] | None = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table("bugs", schema=None) as batch_op:
        batch_op.add_column(sa.Column("rejection_reason", sa.Text(), nullable=True))

    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table("bugs", schema=None) as batch_op:
        batch_op.drop_column("rejection_reason")

    # ### end Alembic commands ###
