fix(db): drop the stale migration-90 grandfather entry (its second file was renumbered to 0092) - #9093
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
…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>
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-26 17:05:08 UTC
Review summary Nits — 5 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.
|
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (validate, validate-tests)). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
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→186 migrations OK — contiguous 0001..0182 (4 grandfathered duplicates: 0015, 0017, 0074, 0156)npx vitest run test/unit/migration-collisions.test.ts— 15/15 pass;tsc --noEmitcleanCloses #8897