Files
Aegis/backend/alembic/versions
Kitos 7e33746539
Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled
fix(phase-35): rewrite migration to avoid SQLAlchemy enum auto-create
Replace sa.Enum column types with raw SQL DO $$ IF NOT EXISTS blocks
for enum creation, then sa.Text columns + ALTER TYPE USING casts.
This completely bypasses SQLAlchemy's _on_table_create hook that
triggers CREATE TYPE without checkfirst, causing DuplicateObject
on PostgreSQL when the entrypoint retries after a failed migration.
2026-02-17 16:22:43 +01:00
..