Trying to rename empty table from "user" to "users" w/ push
Building an app using T3 stack w/ Drizzle and PlanetScale(MySQL)
Here's my current schema (at the bottom), I'm trying to rename
"user"
to "users"
and my table is completely empty. When I run "db:push": "drizzle-kit push:mysql"
I get
I've tried the second option to rename it and I get this back
No idea what is happening, since I'm working in development I don't mind deleting tables completely or wiping data from them frequently right now, so just curious, should I be handling this a different way? I generally thought if I did push
that it was going to rebuild the entire db based off my current schema ?
Full schema so far
1 Reply
Facing the same issue here, super frustrating... It seems to be an issue with setting columns notNull(), unique(), or primaryKey(). I managed to rename by first removing those properties from all columns in the table and running db:push, then rename after and run db:push again.