PlanetScale drizzle-kit push: Cannot drop index: needed in a foreign key constraint
Whenever I run
drizzle-kit push
against PlanetScale, drizzle drops and recreates primary key constraints, foreign key constraints, unique constraints etc. and keeps running into issues doing so. I've created a minimal example to illustrate the issue. In this example, the first drizzle-kit push
goes through, all subsequent pushes throw an error without even changing the schema at all.
2 Replies
This is prob. related https://discord.com/channels/1043890932593987624/1172329418195226666/1172329418195226666 but should've been fixed a while ago?
I experience the same.