Sebastian
Explore posts from serversDTDrizzle Team
•Created by Sebastian on 7/9/2023 in #help
Cannot drop index 'idx': needed in a foreign key constraint
So I had this table with its migration in the database:
Then modified it to the following: ( dropped id and made the userId the primaryKey )
When I'm trying to apply the migration, I get the error: "Cannot drop index 'user_id_idx': needed in a foreign key constraint" How can this type of thing be safely done? And is it a drizzle problem?
2 replies