Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled
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.
Generic single-database configuration with Alembic.