"""Add auto_llm to ingredient_match_source_enum Revision ID: 0010 Revises: 0009 Create Date: 2026-05-11 """ from alembic import op revision = "0010" down_revision = "0009" branch_labels = None depends_on = None def upgrade() -> None: # PostgreSQL 9.1+ allows adding values to existing enums. # IF NOT EXISTS guard makes the migration idempotent. op.execute("ALTER TYPE ingredient_match_source_enum ADD VALUE IF NOT EXISTS 'auto_llm'") def downgrade() -> None: # PostgreSQL does not support removing enum values without dropping and # recreating the type; rows using 'auto_llm' would block the drop. # Downgrade is intentionally a no-op. pass