"""add variants column to attachments Revision ID: Revises: 25c48b226c14 Create Date: """ from __future__ import annotations from alembic import op revision = "d60dfc3e075a" down_revision = "25c48b226c14" branch_labels = None depends_on = None def upgrade() -> None: op.execute(""" ALTER TABLE attachments ADD COLUMN IF NOT EXISTS variants JSONB NOT NULL DEFAULT '[]'::jsonb """) def downgrade() -> None: op.execute("ALTER TABLE attachments DROP COLUMN IF EXISTS variants")