Can't run drizzle db:push due to error yet the code hasn't changed
So i am trying to push my new schema to planetScale however i run into this error:
When i ran this
db:push
earlier this week i didn't have any issues and i din't change anything so i don't know whats up there
find my schema attached12 Replies
why the notnull
if there is default
that's a great question i don't really know why i did that, even once removing that is still won't work so that's not really my issue. but thank you for picking that up
what if you do default(0)
Nah that doesn't work
Also, now is not a date I think?
so doing mode date
But defaultNow
get rid of mode date maybe
if you have a look at ths schmea attached you can see my date fields
get rid of date
yeh that still doesn't work
timestamp("").defaultNow()
doesnt work?Correct, ussaly it does but for some reason it still error with all of that, it's weird becuase all this code was working no that long ago beacuse i only reason for the changes is for my users schema and stuff but that isn't whjere the issue lyes which is weird
take it to drizzles discord then, seems like a weird bug, and if they do help please say more than "doesnt work"
https://discord.gg/gDVHNhbN