"""Add render_log JSONB column to cad_files

Revision ID: 009
Revises: 008
Create Date: 2026-03-01

"""
from typing import Sequence, Union
from alembic import op

revision: str = "009"
down_revision: Union[str, None] = "008"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.execute(
        "ALTER TABLE cad_files "
        "ADD COLUMN IF NOT EXISTS render_log JSONB"
    )


def downgrade() -> None:
    op.execute(
        "ALTER TABLE cad_files "
        "DROP COLUMN IF EXISTS render_log"
    )
