Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run sqlite migrations local. #432

Closed
tobiasfoerg opened this issue May 23, 2024 · 2 comments
Closed

Unable to run sqlite migrations local. #432

tobiasfoerg opened this issue May 23, 2024 · 2 comments
Assignees
Milestone

Comments

@tobiasfoerg
Copy link

Hi,
i am not able to run local sqlite migrations.
I allways receive the following error:

~/xxxxx> pnpm drizzle-kit migrate                                                                                                                        
drizzle-kit: v0.21.4
drizzle-orm: v0.30.10

No config path provided, using default path
Reading config file '/home/xxxxx/drizzle.config.ts'
 Invalid input  Either "turso", "libsql", "better-sqlite" are available options for "--driver"

My config is:

// drizzle.config.ts
import { defineConfig } from "drizzle-kit";
import { globSync } from "fast-glob";

const path = globSync(".wrangler/state/v3/d1/**/*.sqlite");

export default defineConfig({
	schema: "./app/db.server/schema.ts",
	out: "./migrations",
	dialect: "sqlite",
	strict: true,
	migrations: {
		table: "__schema_migrations",
	},
	dbCredentials: {
		url: path[0],
	},
});

and i have "@libsql/client": "^0.6.0", as dev dependency.

@raiyansarker
Copy link

I am having this issue,

Screenshot 2024-05-24 at 3 19 13 AM

this is my config,
Screenshot 2024-05-24 at 3 19 37 AM

@AlexBlokh AlexBlokh self-assigned this May 27, 2024
@AlexBlokh AlexBlokh added this to the v0.21.5 milestone May 27, 2024
@AndriiSherman
Copy link
Member

fixed in drizzle-kit@0.22.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants