Compound unique #2129
Answered
by
Sytten
ff-anthony-soto
asked this question in
Q&A
Compound unique
#2129
-
Recently I updated to the latest version of prisma2. But I get an error on my schema. Do you guys know the issue behind this? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
Sytten
Apr 8, 2020
Replies: 1 comment 2 replies
-
As per the release note, there is a new relation system in place and you need to update your existing relations to use a scalar field. Those fields can then be used to create the unique key. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ff-anthony-soto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As per the release note, there is a new relation system in place and you need to update your existing relations to use a scalar field. Those fields can then be used to create the unique key.