Drizzle kit SQL error
Hi all,
I'm getting this weird error when I try to push my schema changes using drizzle-kit push and I have no idea where to begin to solve it:
I am using PlanetScale as my database provider.
7 Replies
This is my schema file:
And my db.ts file:
A side note:
The code base I am working in is a fork of another project I am working on. I want to give this fork its own database.
Okay I figured out the issue, but I still dont have a solution. If I use the connection string from the original project inside of my forked project, then drizzle-kit push works perfectly fine.
https://github.com/drizzle-team/drizzle-orm/issues/472
I have the same issue. Can't find a fix for
onUpdateNow()
GitHub
[BUG]: planetscale - now() and current_timestamp() doesn't work whe...
What version of drizzle-orm are you using? 0.23.13 What version of drizzle-kit are you using? 0.17.4 Describe the Bug Create table fails on planetscale if FSP not specified for now() and current_ti...
🥲
OnUpdateNow is kind of important!
This seems to be working
works everytime the row is updated? Or only when the row is created?
Updated. The ‘null’ is the default when created, and but it retains the ON UPDATE at the end of the sql query, so updates, on update
awesome! Thanks for the snippet 😄