diff --git a/changes/12887.fix.md b/changes/12887.fix.md new file mode 100644 index 00000000000..382995cb258 --- /dev/null +++ b/changes/12887.fix.md @@ -0,0 +1 @@ +Fix the legacy app_configs downgrade failing with a duplicate enum type error diff --git a/src/ai/backend/manager/models/alembic/versions/84d5c6daf8cc_drop_legacy_app_configs_table.py b/src/ai/backend/manager/models/alembic/versions/84d5c6daf8cc_drop_legacy_app_configs_table.py index eb8a26fa72e..13e4e665c3a 100644 --- a/src/ai/backend/manager/models/alembic/versions/84d5c6daf8cc_drop_legacy_app_configs_table.py +++ b/src/ai/backend/manager/models/alembic/versions/84d5c6daf8cc_drop_legacy_app_configs_table.py @@ -36,7 +36,6 @@ def downgrade() -> None: # Recreate the predecessor table to allow `alembic downgrade` to # complete cleanly. Existing-row restoration is not attempted. app_config_scope_type = sa.Enum("DOMAIN", "PROJECT", "USER", name="app_config_scope_type") - app_config_scope_type.create(op.get_bind(), checkfirst=True) op.create_table( "app_configs", IDColumn(),