gabriel / musehub public
fix patch task/migration-0046-snapshot-entries #1 / 1
gabriel · 164 days ago · Apr 13, 2026 · Diff

fix: add migration 0046 to re-create musehub_snapshot_entries

Migration 0043 dropped the table as dead schema weight. Adding MusehubSnapshotEntry back to the ORM for TDD snapshot-diff work caused schema drift that crashed startup (assert_schema_matches_orm detected missing table).

Migration 0046 re-creates the table with wider path column (4096 vs 1024) to match the ORM and support deep file hierarchies. Updates migration count and head assertions in test_musehub_alembic.py and test_migrations.py.

sha256:6fa1f603c7810b4dfea38cd7d3d3ab73ec254b9dd36f9ff5afda1955da8a0583 sha
+11 ~6 −2 symbols
sha256:0a6a17207f9b021f4961a51e6db6fec77253b7ef2fa993f7d253cee8424e24a4 snapshot
+11
symbols added
~6
symbols modified
−2
symbols removed
0
dead code introduced
Semantic Changes 19 symbols
+ branch_labels variable variable branch_labels L23–23
+ depends_on variable variable depends_on L24–24
+ down_revision variable variable down_revision L22–22
+ downgrade function function downgrade L52–55
+ annotations import import annotations L16–16
+ op import import op L19–19
+ sa import import sa L18–18
+ revision variable variable revision L21–21
+ upgrade function function upgrade L27–49
~ tests/test_migrations.py .py 2 symbols added, 2 symbols removed, 4 symbols modified
− test_all_45_migrations_present method method test_all_45_migrations_present L267–270
− test_head_revision_is_0045 method method test_head_revision_is_0045 L272–292
+ test_all_46_migrations_present method method test_all_46_migrations_present L267–270
+ test_head_revision_is_0046 method method test_head_revision_is_0046 L272–292
~ _HEAD
← Older Oldest on task/migration-0046-snapshot-entries
All commits
Newer → Latest on task/migration-0046-snapshot-entries

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:6fa1f603c7810b4dfea38cd7d3d3ab73ec254b9dd36f9ff5afda1955da8a0583 --body "your comment"