Skip to content

Squash unapplied early-access migrations into 0005 - #51

Closed
eliteprox wants to merge 1 commit into
codex/early-access-foundationfrom
feat/squash-early-access-migrations
Closed

Squash unapplied early-access migrations into 0005#51
eliteprox wants to merge 1 commit into
codex/early-access-foundationfrom
feat/squash-early-access-migrations

Conversation

@eliteprox

Copy link
Copy Markdown
Collaborator

Summary

  • Keep waitlist drizzle 00000004 byte-identical (those hashes are live on Neon nameless-art-07247468 / main).
  • Concatenate unapplied 00050008 (canonical users, identity metadata, early-access domains + backfills, OAuth receipts) into one 0005_early_access_foundation migration.
  • Do not base this on Add mcp_assets Drizzle migration #50. That PR plants a conflicting 0000 (mcp_assets) and cannot migrate the waitlist DB in place.

Test plan

  • pnpm typecheck
  • pnpm test lib/db/early-access-migration.test.ts lib/db/schema-invariants.test.ts
  • Snyk Code on lib/db (0 issues). SCA findings are pre-existing next CVEs; this PR does not change package.json.
  • Rehearsal on Neon squash-0005-rehearsal-20260905 (parent-data from main): 65 signups preserved, 3 admin grants, 65 subscriptions, 72 consent rows linked.
  • Schema vs console-early-access-preview-20260904 matches tables/indexes/triggers; remaining diffs are mcp_assets (already on waitlist main) and preview ACL roles.
  • Do not run pnpm db:migrate against waitlist main until this is reviewed.
  • Recreate preview/integration branches after merge; they still have hashes 6–9.

Waitlist production already has 0000-0004. Concatenating the tail lets
cutover run one in-place migration instead of four.
@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
console Ready Ready Preview Sep 5, 2026 4:59am UTC

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant