Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled
SQLAlchemy fires before_create for ALL known enum types when any table is created via op.create_table, causing DuplicateObject even with create_type=False. Rewrite both CREATE TABLE statements as raw SQL via conn.execute(sa.text(...)) and use CREATE TABLE IF NOT EXISTS / CREATE INDEX IF NOT EXISTS for full idempotency. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>