How to Handle Partial Unique Indexes with Prisma Migrations?
Hey Community,
I'm working on a use case where I need to manually modify a Prisma migration file to add a
The issue is that Prisma doesn't recognize this line afterwards. When I run
Is there any known workaround to prevent Prisma from re-adding this constraint?
Thanks in advance!
I'm working on a use case where I need to manually modify a Prisma migration file to add a
WHERE clause to a unique index. For example:The issue is that Prisma doesn't recognize this line afterwards. When I run
prisma migrate dev, it tries to add the unique constraint again:Is there any known workaround to prevent Prisma from re-adding this constraint?
Thanks in advance!