Planetscale migration error
Hey guys, I was just trying drizzle with planetscale for the first time and I end up having this issue with migrator
using planetscale serverless driver with admin privileges,
3 Replies
Problem is that you did not put
--> statement-breakpoint
between SQL statements.
For example, not this.
this works.
In order to geneerate --> statement-breakpoint
when you execute generate
command, you need to add breakpoints: true
, in your drizzle.config.ts
.
Here is my command.
If you run generate command, you should have sql with --> statement-breakpoint
Here is my github, if you need it.
https://github.com/hayato94087/nextjs-planetscale-drizzle-20230609-test
GitHub
GitHub - hayato94087/nextjs-planetscale-drizzle-20230609-test
Contribute to hayato94087/nextjs-planetscale-drizzle-20230609-test development by creating an account on GitHub.
Hello! how are you handling relations with planetscale and drizzle? how does a "one-to-many" query looks like?
nevermind tysm @hayato94087 for sharing the repo. this helps a lot!