Repository navigation
Conversation
…scade Adds oauth_access_token_session_idx on session_id, the referencing column of the oauth_access_token.session_id -> session.id foreign key. PostgreSQL preserves FK correctness without it, but session deletion may scan the child table as it grows. Generated append-only migration 0042 after the current planned sequence; preserves released 0037/0038 and all prior SQL, snapshots and journal prefixes. The migration is drizzle-kit generated, so the declared schema and the migration agree by construction. Refs Noveum#594 Signed-off-by: ayam04 <[email protected]>
|
Thanks for your first pull request to Orbit. Two things that will save you a review round: A maintainer will review this shortly. Ask anything on the thread. |
This branch has not been 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.
Fixes #594.
Adds
oauth_access_token_session_idxonsession_id— the referencing column of theoauth_access_token.session_id -> session.idFK, which currently has no index. PostgreSQL preserves FK correctness without it, but session deletion may scan the child table as the registry grows.Changes
packages/db/src/schema/oauth.ts: one index added tooauthAccessToken.packages/db/drizzle/0042_right_hannibal_king.sql: append-only migration generated by drizzle-kit (singleCREATE INDEX).Validation
db:release/db:check-drift/ session-deletion exercise require the Postgres harness (Docker), not available in this environment; CI is the oracle for those. No code logic changed, so no unit-test regression is expected.Preserves released 0037/0038 and all prior SQL, snapshots and journal prefixes.