Open Itisfilipe opened 1 year ago
Thanks! Will add this fix. Currently for defaults you can use
.default(sql`(now(2))`)
.default(sql`CURRENT_TIMESTAMP(2)`)
For onUpdate
no workarounds for now. Only by manually changing sql file before applying it to database
I have this same issue. I can manually change the sql, but it's blocking me from using my planetscale push:mysql
workflow :(.
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_timestamp
leads to
but it works if the FSP is added
the same is valid for current_timestamp
it works for
Expected behavior
No response
Environment & setup
No response