Med
04/07/2022, 10:56 AM@unique tag on that relation. I have removed the unique tag because we changed the structure of the DB however prisma migrate does not see the change and says the schema is in sync with the DB but it is not as my db still has the unique foreign key constraint.
Anyway I can get the migrate system to pick up this change to for the change of the constraint?Arthur Cachero
04/07/2022, 5:39 PMprisma migrate dev
I just ran into the same issue and added the devArthur Cachero
04/07/2022, 5:40 PMMed
04/08/2022, 3:28 AMArthur Cachero
04/08/2022, 3:55 AMArthur Cachero
04/08/2022, 3:55 AMjanpio
janpio
npx prisma migrate dev --create-only , then manually add the SQL to fix the database schema, run migrate dev to apply it and from then on everything should be fine.