Files
Aegis/backend/alembic/versions
kitos f97b9e96b7
Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled
fix(migration): rewrite b035 with raw SQL to avoid SQLAlchemy DDL hook
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>
2026-05-19 16:54:32 +02:00
..