Error: A unique constraint would be violated on ProviderRoleAccess. Details: Field name = role

i am after run this command yarn prisma:deploy-force
No description
5 Replies
Nurul
Nurul•2y ago
Hello 👋 It's difficult to predict what might be going wrong without looking at the code. From the error message, it looks like you are trying to insert some data that is causing a unique constraint to fail. Have you defined unique constraint on the role column?
arga fauzianto
arga fauziantoOP•2y ago
colum role in db? or in seed?
Nurul
Nurul•2y ago
Both. I assume you would have a column named role in the table of your database and you are seeding that table with role data.
arga fauzianto
arga fauziantoOP•2y ago
this my file datamodel.graphql
arga fauzianto
arga fauziantoOP•2y ago
i think i commented this code before: - ts-prisma/seed , and after # ts-prisma-node/seed , will it have an effect?
No description

Did you find this page helpful?