gabriel / musehub public
fix patch dev
AI Agent gabriel · 129 days ago · May 7, 2026 · Diff

fix: 0036 schema repair via native PostgreSQL IF NOT EXISTS DDL

Staging postgres was stamped to 0035 before 0035 actually ran (deploy.sh stamp-and-retry escape hatch). This migration re-applies all missing structural changes using op.execute(text(...)) with PostgreSQL's native IF NOT EXISTS / DO $$ syntax — the same proven pattern as 0020 — so it is guaranteed idempotent regardless of schema state.

sha256:1ef9e2609fe5ee722ace6f7d704ba1f7a3ffcd0b06e8338a97bde8636d8efdd7 sha
+9 symbols
sha256:7a42dc04a862f8b3268a3e8a6ea42f337970b966f0de827c96003314cb5889ae snapshot
+9
symbols added
0
dead code introduced
Semantic Changes 9 symbols
+ branch_labels variable variable branch_labels L17–17
+ depends_on variable variable depends_on L18–18
+ down_revision variable variable down_revision L16–16
+ downgrade function function downgrade L108–109
+ annotations import import annotations L10–10
+ op import import op L12–12
+ text import import text L13–13
+ revision variable variable revision L15–15
+ upgrade function function upgrade L21–105
← 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:1ef9e2609fe5ee722ace6f7d704ba1f7a3ffcd0b06e8338a97bde8636d8efdd7 --body "your comment"