gabriel / musehub public
fix BREAKING proposals dev
AI Agent gabriel · 128 days ago · May 8, 2026 · Diff

fix(proposals): migration 0044 — use autocommit_block for CONCURRENTLY indexes

CREATE INDEX CONCURRENTLY cannot run inside a transaction block. Replace op.execute() calls with op.get_context().autocommit_block() context manager (Alembic 1.1+) so each DDL statement runs outside the implicit transaction Alembic opens per migration.

Fixes crash-loop on container startup after Phase 7 deploy.

sha256:d3ff3a0210fc8e65e080cf8ecc811d161fc6f3f5339a6b1ad96748cd5a17a2f2 sha
+3 ~2 −1 symbols
sha256:7051d744bcad202f8d7a0522c69562c6449775d5032403273b2590dad00814da snapshot
+3
symbols added
~2
symbols modified
−1
symbol removed
0
dead code introduced
Semantic Changes 6 symbols
~ alembic/versions/0044_proposal_list_query_indexes.py .py 3 symbols added, 1 symbol removed, 2 symbols modified
sa import import sa L8–8
+ _CREATE variable variable _CREATE L25–37
+ _DROP variable variable _DROP L39–44
+ text import import text L13–13
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:d3ff3a0210fc8e65e080cf8ecc811d161fc6f3f5339a6b1ad96748cd5a17a2f2 --body "your comment"