feat(phase1): add musehub_object_refs — materialized reachability index
Migration 0044 creates musehub_object_refs (repo_id, object_id) with a composite PK for idempotent upserts, an index on object_id for reverse lookups, and backfills one ref per existing object from the legacy musehub_objects.repo_id column.
ORM: MusehubObjectRef model with FK to both musehub_repos (CASCADE) and musehub_objects. MusehubObject gains a refs relationship. Legacy repo_id column and relationship remain intact until phase 5 (migration 0045).
All 49 migration tests pass.
sha256:d6ce1c5868f7726c7fe8504d9c437eb2f5f5fb66c419faffa021c9c4799b87c7
sha
+12
~7
−2
symbols
sha256:91b60fa2a84a7466feffdc6419fe7c5a39f0e2717cfb54f172b5629a74ab6892
snapshot
+12
symbols added
~7
symbols modified
−2
symbols removed
0
dead code introduced
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:d6ce1c5868f7726c7fe8504d9c437eb2f5f5fb66c419faffa021c9c4799b87c7 --body "your comment"
No comments yet. Be the first to start the discussion.