BEEIRL
DTDrizzle Team
•Created by BEEIRL on 8/23/2024 in #help
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.
3 replies