4e1f35c250
Aegis CI / lint-and-test (push) Waiting to run
Snyk Security Scan / Python vulnerabilities (backend) (push) Waiting to run
Snyk Security Scan / npm vulnerabilities (frontend) (push) Waiting to run
Snyk Security Scan / Docker image vulnerabilities (backend) (push) Waiting to run
26 lines
679 B
Python
26 lines
679 B
Python
"""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")
|