-
Notifications
You must be signed in to change notification settings - Fork 131
Description
Config File
{
"hasSrc": true,
"packages": [
"shadcn-ui",
"drizzle",
"next-auth"
],
"preferredPackageManager": "pnpm",
"t3": false,
"alias": "~",
"analytics": true,
"rootPath": "src/",
"componentLib": "shadcn-ui",
"driver": "sqlite",
"provider": "turso",
"orm": "drizzle",
"auth": "next-auth"
}
Describe the bug
With the current Drizzle Version Turso is not a driver and instead a dialect.
To Reproduce
Steps to reproduce the behavior:
- Use Krimase with Turso
Expected behavior
Should just work.
Additional context
Fixed drizzle.config.ts:
import type { Config } from "drizzle-kit";
import { env } from "~/lib/env.mjs";
export default {
schema: "./src/lib/db/schema",
dialect: "turso",
out: "./src/lib/db/migrations",
dbCredentials: {
url: env.DATABASE_URL,
authToken: env.DATABASE_AUTH_TOKEN,
}
} satisfies Config;
Files needing change for the fix:
types.d.ts, src/commands/add/orm/drizzle/generatos.ts, src/commands/init/utils.ts