db: restore and extend gateway usage migrations - #5135
Draft
OmarMcAdam wants to merge 1 commit into
Draft
OmarMcAdam wants to merge 1 commit into
OmarMcAdam wants to merge 1 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
OmarMcAdam
marked this pull request as draft
September 18, 2026 00:56
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope — database migrations only
Split from #5133 so the database changes can land before the incremental Gateway usage implementation.
This PR changes only
ee/packages/den-db:current-schema.sqland fresh database bootstraps consistent with the migration journal.No API routes, UI, Gateway enforcement, accounting workers, request-path locking, connection-pool changes, or feature activation. All migration assets are identical to their versions in #5133 at
aa8223dbb.Migration history
9b0adb849.A database with valid receipts through 0104 should apply only 0105–0107. Tables without matching receipts or partially applied DDL require explicit investigation—do not re-baseline or rewrite old receipts.
Merge order and operational effect
devtriggers that workflow; this task did not invoke it or access production.origin/dev, removing these database changes from its remaining diff.Auto-merge on #5133 has been paused to preserve this order. This PR is not configured to auto-merge.
Validation
Validated on isolated, pinned MySQL 8.4.10, never production:
@openwork/typesbuild,@openwork-ee/den-dbbuild, database TypeScript check, anddb:generatepassed; generation reported no changes.migration-readiness.test.ts:572, expecting a path filter removed by chore(ci): keep non-PR automation and remove review triggers #5126. The identical selected test failed on a clean detachedd80494a19control with the same Node/tsx versions and frozen dependencies. No workflow or application changes were added to work around it.The large diff is almost entirely generated schema snapshots. No live records, credentials, or diagnostic logs are included.