gabriel / musehub public
fix BREAKING dev
AI Agent gabriel · 157 days ago · Apr 21, 2026 · Diff

fix: widen muse_cli_models ORM to String(128) + migrate repo_id columns

ORM definitions for muse_commits, muse_snapshots, muse_objects, and muse_tags were still String(64/36) even though the DB columns were already widened by the previous migration. Two fixes:

1. muse_cli_models.py — all ID and repo_id columns updated to String(128) to match the live DB schema and accommodate sha256-prefixed IDs (71 chars).

2. widen_repo_id_columns_to_128.py — new Alembic migration (b2c3d4e5f6a1) widens muse_commits.repo_id and muse_tags.repo_id from VARCHAR(36) to VARCHAR(128). The previous migration missed these columns since repo_id stores genesis fingerprints (sha256:<hex> = 71 chars) not UUIDs (36 chars).

sha256:f111b369a3af7d58b44184d1dc9334bace7818b40eb4b3a970ff08aab389c4f4 sha
+11 ~4 symbols
sha256:a1ed999702b03d935a0399a1785d130404490bb94c7e1a4ca760195c570594f0 snapshot
+11
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes 15 symbols
+ _COLUMNS variable variable _COLUMNS L25–28
+ branch_labels variable variable branch_labels L22–22
+ depends_on variable variable depends_on L23–23
+ down_revision variable variable down_revision L21–21
+ downgrade function function downgrade L41–48
+ Union import import Union L15–15
+ annotations import import annotations L13–13
+ op import import op L18–18
+ sa import import sa L17–17
+ revision variable variable revision L20–20
+ upgrade function function upgrade L31–38
← 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:f111b369a3af7d58b44184d1dc9334bace7818b40eb4b3a970ff08aab389c4f4 --body "your comment"