Repository navigation
fix(database): re-parent custom app credentials migration onto main head - #1618
Merged
Merged
Conversation
The add-custom-app-credentials migration shared its parent snapshots with bind_oauth_consent_workspace, forking the snapshot chain and failing the schema drift check on main. Regenerate it after keyword_conditions and make the column add idempotent for databases that already applied the old one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
hello-jackytruong
referenced
this pull request
in hello-jackytruong/ChatWorkAI
Nov 22, 2026
…ead (#1618) The add-custom-app-credentials migration shared its parent snapshots with bind_oauth_consent_workspace, forking the snapshot chain and failing the schema drift check on main. Regenerate it after keyword_conditions and make the column add idempotent for databases that already applied the old one. Co-authored-by: Deathgiver <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Summary
Fixes the
Lintjob failing onmainafter #1556 (run https://github.com/ChatbotXIO/ChatbotX/actions/runs/41399146818).20261029111811_add-custom-app-credentials(#1556) and20261030052828_bind_oauth_consent_workspace(#1595) both point at the same parent snapshots (20261029043008+20261029080244), so the snapshot chain forked.drizzle-kit generaterejects that as "Non-commutative migrations detected", which failsdb:check-drift.Changes
20261029111811_add-custom-app-credentials.20261102063250_add-custom-app-credentials, parented on the current head20261102052103_keyword_conditions.ADD COLUMN IF NOT EXISTS, so a database that already applied the old migration does not hit a duplicate-column error.Verification
pnpm --filter @chatbotx.io/database lint: "Schema is in sync with the migration snapshot chain."db:migratewas not run.🤖 Generated with Claude Code