You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this error Unique constraint failed on the fields: (`challengeId`,`userId`)
When using a unique contraint in the where of upsert
By logic, this error should never happen as it's an upsert, it should trigger the update condition, and never add a new row.
Bug description
Hi !
I have this error
Unique constraint failed on the fields: (`challengeId`,`userId`)
When using a unique contraint in the
where
ofupsert
By logic, this error should never happen as it's an
upsert
, it should trigger theupdate
condition, and never add a new row.Am i missing something ?
How to reproduce
Copy/Past the prisma information in a new project
Expected behavior
No response
Prisma information
Environment & setup
Prisma Version
I also tried with
4.5.0-dev.38
following this threadThe text was updated successfully, but these errors were encountered: