"""Add three-layer material assignment columns to cad_files. Revision ID: 061 Revises: 060 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import postgresql revision = "061" down_revision = "060" branch_labels = None depends_on = None def upgrade() -> None: op.add_column("cad_files", sa.Column("source_material_assignments", postgresql.JSONB(), nullable=True)) op.add_column("cad_files", sa.Column("resolved_material_assignments", postgresql.JSONB(), nullable=True)) op.add_column("cad_files", sa.Column("manual_material_overrides", postgresql.JSONB(), nullable=True)) def downgrade() -> None: op.drop_column("cad_files", "manual_material_overrides") op.drop_column("cad_files", "resolved_material_assignments") op.drop_column("cad_files", "source_material_assignments")