You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When selecting SQLite as the database and Turso as the client, the content in schema.ts is generated incorrectly. Other client combinations for SQLite do not have this issue.
Steps to reproduce:
Start creating a new project using sv create
Select drizzle, lucia as add-ons
Choose SQLite as the database
Choose Turso as the SQLite client
Wait until the project setup is complete
Observe incorrect content in the file src/lib/server/db/schema.ts
pnpx sv create
┌ Welcome to the Svelte CLI! (v0.6.18)
│
◇ Where would you like your project to be created?
│ ./
│
◇ Which template would you like?
│ SvelteKit minimal
│
◇ Add type checking with Typescript?
│ Yes, using Typescript syntax
│
◆ Project created
│
◇ What would you like to add to your project? (use arrow keys / space bar)
│ prettier, eslint, vitest, sveltekit-adapter, drizzle, lucia
│
◇ sveltekit-adapter: Which SvelteKit adapter would you like to use?
│ node
│
◇ drizzle: Which database would you like to use?
│ SQLite
│
◇ drizzle: Which SQLite client would you like to use?
│ Turso
│
◇ lucia: Do you want to include a demo? (includes a login/register page)
│ Yes
│
◇ Which package manager do you want to install dependencies with?
│ pnpm
│
◆ Successfully setup add-ons
│
◆ Successfully installed dependencies
│
◇ Successfully formatted modified files
│
◇ Project next steps ─────────────────────────────────────────────────────╮
│ │
│ 1: git init && git add -A && git commit -m "Initial commit" (optional) │
│ 2: pnpm run dev --open │
│ │
│ To close the dev server, hit Ctrl-C │
│ │
│ Stuck? Visit us at https://svelte.dev/chat │
│ │
├──────────────────────────────────────────────────────────────────────────╯
│
◇ Add-on next steps ──────────────────────────────────────────────────╮
│ │
│ drizzle: │
│ - You will need to set DATABASE_URL in your production environment │
│ - Run pnpm run db:push to update your database schema │
│ │
│ lucia: │
│ - Run pnpm run db:push to update your database schema │
│ - Visit /demo/lucia route to view the demo │
│ │
├──────────────────────────────────────────────────────────────────────╯
│
└ You're all set!
schema.ts for SQLite with better-sqlite3 as the client for comparison
When selecting SQLite as the database and Turso as the client, the content in
schema.ts
is generated incorrectly. Other client combinations for SQLite do not have this issue.Steps to reproduce:
sv create
drizzle
,lucia
as add-onsSQLite
as the databaseTurso
as the SQLite clientsrc/lib/server/db/schema.ts
src/lib/server/db/schema.ts
CLI output
schema.ts
for SQLite withbetter-sqlite3
as the client for comparisonThe text was updated successfully, but these errors were encountered: