Update drizzle-orm and drizzle-kit in with-drizzle templates#263
Merged
Conversation
- Bump drizzle-kit ^0.22.7 -> ^0.31.10 and drizzle-orm ^0.31.2 -> ^0.45.2 in both solid-start-v1 and solid-start-v2 with-drizzle templates (fixes solidjs/solid-start#1917) - Use drizzle-kit's defineConfig in drizzle.config.ts and drop the stale commented driver option - Regenerate the bundled dev db.sqlite from the schema; the old binary was created by drizzle-kit 0.22 with drifted DDL (id DEFAULT 0), which made `drizzle-kit push` on current drizzle-kit fail with "index users_id_unique already exists" - Fix the v1 template's useSession import: @solidjs/start/http is a v2-only entry point, so the v1 template failed at runtime with 'Missing "./http" specifier'; v1 uses vinxi/http Both templates verified: drizzle-kit push (idempotent on second run), dev server boots, and the register/logout/login flow works end to end. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
birkskyum
approved these changes
Jul 18, 2026
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 solidjs/solid-start#1917 (the
with-drizzleexample now lives in this repo).Changes
Applied to both
solid-start-v1/with-drizzleandsolid-start-v2/with-drizzle:drizzle-kit^0.22.7→^0.31.10anddrizzle-orm^0.31.2→^0.45.2(versions from June 2024 → current), and regenerate the lockfiles.drizzle.config.tsto usedefineConfigfromdrizzle-kitand drop the stale commented-outdriveroption.drizzle/db.sqlitefrom the schema. The old binary was created by drizzle-kit 0.22 with drifted DDL (id integer PRIMARY KEY DEFAULT 0vs no default inschema.ts), which madedrizzle-kit pushon current drizzle-kit detect a table recreation and fail withSqliteError: index users_id_unique already exists. With the regenerated db,pushis a clean no-op.v1-only fix found while verifying:
src/api/server.tsimporteduseSessionfrom@solidjs/start/http, which is a v2-only entry point — the v1 template failed at runtime withMissing "./http" specifier in "@solidjs/start" package(looks like it was synced from the v2 template in reintegrate SolidStart v1 #254). Restored the v1 import fromvinxi/http.Verification
For each template:
pnpm install,pnpm exec drizzle-kit push(idempotent on second run), started the dev server, and exercised register → logout → login in a browser — the full drizzle insert/select flow works on drizzle-orm 0.45.2.🤖 Generated with Claude Code