fix(db): grandfather the 0156 migration-number collision - #6494
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6494 +/- ##
=======================================
Coverage 95.56% 95.56%
=======================================
Files 589 589
Lines 47121 47121
Branches 14989 14989
=======================================
Hits 45032 45032
Misses 1297 1297
Partials 792 792
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-16 11:21:21 UTC
Review summary Nits — 3 non-blocking
Why this is blocked
📋 Copy for AI agents — paste into your coding agentCI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
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.
|
0156_draft_pr_close_policy.sql (#6454) and 0156_pull_request_screenshot_table_ presence_satisfied.sql (a same-day, independently-merged PR) both grabbed migration number 0156 relative to the same origin/main base and merged without a collision being caught. Both have already been applied to production D1 under their current filenames (confirmed via d1_migrations) — renaming either now would make wrangler try to RE-APPLY it, and both are bare ALTER TABLE ADD COLUMN statements SQLite can't guard with IF NOT EXISTS, so the re-apply would error and break the next deploy. Grandfather 0156 in KNOWN_MIGRATION_DUPLICATES, matching the exact precedent already set by 0015/0017/0074/0090 for the same "already-shipped, can't-be-renumbered" reason.
b9fb9d3 to
56a3391
Compare
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Summary
0156_draft_pr_close_policy.sql(feat(review): add an opt-in draft-PR close policy to stop bot-review farming #6454) and0156_pull_request_screenshot_table_presence_satisfied.sql(a same-day, independently-merged PR) both grabbed migration number 0156 relative to the sameorigin/mainbase and merged without a collision being caught.d1_migrations) — renaming either now would make wrangler try to RE-APPLY it, and both are bareALTER TABLE ADD COLUMNstatements SQLite can't guard withIF NOT EXISTS, so the re-apply would error and break the next deploy.KNOWN_MIGRATION_DUPLICATES, matching the exact precedent already set by 0015/0017/0074/0090 for the same "already-shipped, can't-be-renumbered" reason.Found while running the full test suite as part of a broader cleanup pass (see sibling PRs).
Validation
npm run db:migrations:checknpm run test:ci(relevant subset green)