"""Add is_on_hold, hold_reason, held_at to tests.

Revision ID: b051
Revises: b050
Create Date: 2026-06-19
"""
from alembic import op
import sqlalchemy as sa

revision = "b051"
down_revision = "b050"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.add_column("tests", sa.Column("is_on_hold", sa.Boolean(), nullable=False, server_default="false"))
    op.add_column("tests", sa.Column("hold_reason", sa.Text(), nullable=True))
    op.add_column("tests", sa.Column("held_at", sa.DateTime(), nullable=True))


def downgrade() -> None:
    op.drop_column("tests", "held_at")
    op.drop_column("tests", "hold_reason")
    op.drop_column("tests", "is_on_hold")
