fix(db): drop the stale migration-90 grandfather entry (its second file was renumbered to 0092) - #9010
Conversation
…le was renumbered to 0092)
KNOWN_MIGRATION_DUPLICATES's [90, {0090_contributor_cap_label.sql, 0090_pull_request_detail_sync_head_sha.sql}]
entry is stale: 0090_pull_request_detail_sync_head_sha.sql was later renumbered to 0092, so only
0090_contributor_cap_label.sql exists at 0090 today. detectMigrationCollisions only consults the list when a
number has >1 file, so this changes no behavior — but it's factually wrong about what's grandfathered. Remove
the entry (check-migrations.ts imports this same constant, so both stay in lockstep) and update the pinning
test; the four remaining entries (15, 17, 74, 156) all still reference real duplicate files.
Closes JSONbored#8897
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9010 +/- ##
==========================================
- Coverage 93.88% 90.56% -3.32%
==========================================
Files 809 97 -712
Lines 80563 22510 -58053
Branches 24441 3889 -20552
==========================================
- Hits 75638 20387 -55251
+ Misses 3560 1945 -1615
+ Partials 1365 178 -1187
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-26 16:03:16 UTC
Review summary Nits — 3 non-blocking
CI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
KNOWN_MIGRATION_DUPLICATES's[90, {0090_contributor_cap_label.sql, 0090_pull_request_detail_sync_head_sha.sql}]entry is stale:
0090_pull_request_detail_sync_head_sha.sqlwas later renumbered tomigrations/0092_*,so only
0090_contributor_cap_label.sqlexists at 0090 today.detectMigrationCollisionsonly consultsthe list when a number has >1 file, so this changes no behavior — but it's factually wrong about what's
grandfathered.
[90, …]entry (check-migrations.tsimports this same constant, so both stay in lockstep).migration-collisions.test.ts(keys[15,17,74,156],plus a new assertion that 90 is no longer grandfathered and 0090's single file is not a collision) and
check-migrations-script.test.ts(the success summary now reports4 grandfathered duplicates: 0015, 0017, 0074, 0156).The four remaining entries (15, 17, 74, 156) all still reference real duplicate files at those numbers.
Test plan
npm run db:migrations:check→184 migrations OK — contiguous 0001..0180 (4 grandfathered duplicates: 0015, 0017, 0074, 0156)npx vitest run test/unit/migration-collisions.test.ts— 15/15 pass;tsc --noEmitcleanCloses #8897