Repository navigation
chore(database): upgrade drizzle-orm and drizzle-kit to 1.0.0-rc.5 - #1759
Merged
Merged
Conversation
realcodesiman
force-pushed
the
chore/drizzle-orm-rc5
branch
from
November 25, 2026 09:39
9b5f6dd to
f83f882
Compare
Bump the catalog pins from 1.0.0-beta.22 and adapt to the rc API: - vendor relationsFilterToSQL in relations-filter.ts and drop the casing argument it no longer takes - stop passing the schema object to drizzle(); relations are enough - run drizzle-kit check as part of the database lint script - remove the obsolete db:fix-chain script - regenerate migration snapshots in the rc format
…pshots Upgrade every migration snapshot to the rc.6 format with drizzle-kit up (covers the seven migrations added on main) and give the post-comment test's sub-select mock real SQL chunks, which rc.6 now walks.
realcodesiman
force-pushed
the
chore/drizzle-orm-rc5
branch
from
November 25, 2026 14:45
f83f882 to
bc2fd0f
Compare
…ter wrapper
Guards the drizzle-orm 1.0.0-rc upgrade: db.execute must keep returning
{ rows, rowCount }, and relationsFilterToSQL must keep returning an SQL
instance and dropping undefined values.
3 of 4 tasks
viethung0o0
pushed a commit
that referenced
this pull request
Nov 26, 2026
…orm rc drizzle-orm 1.0.0-rc throws "Unexpected 'undefined' in filter value" for any undefined key in a relational `where` (top level or inside `with`); beta-22 skipped them. Repositories such as flow `buildWhere` leave optional filters undefined, so opening Flows failed in production after #1759. Patch the shared relational query builder's findMany/findFirst to strip undefined values from the config, covering every db.query.* and tx.query.* call, and add a regression test.
4 of 5 tasks
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
drizzle-ormanddrizzle-kitin thepnpm-workspace.yamlcatalog from1.0.0-beta.22to1.0.0-rc.5.relationsFilterToSQLinpackages/database/src/relations-filter.tsand drop the casing argument it no longer takes.drizzle(). Relations are enough.drizzle-kit checkas part of the databaselintscript, and remove the obsoletedb:fix-chainscript.snapshot.jsonfiles in the rc format. This accounts for most of the diff size and is mechanical.Test plan
pnpm check-typespasses for all 26 packages (run by the pre-commit hook)pnpm lint(includesdb:check-driftanddrizzle-kit check)pnpm testpnpm --filter @chatbotx.io/database test:dbdb:migratewas not run.