Closed weaversam8 closed 4 years ago
@weaversam8 I was unable to reproduce this with preview024
:
User is avaliable for use. Can you please make sure you are on the latest version and please try this again?
You're correct. This issue occurred in preview023
but not preview024
. This can be considered resolved.
For anyone who needs to upgrade the version, this is the command I used:
yarn upgrade prisma2@2.0.0-preview024 @prisma/client@2.0.0-preview024
I'm pretty sure just including prisma2@2.0.0-preview024
would be fine.
I believe this is strongly related to prisma/prisma2#1681, and could be a regression on prisma/prisma2#1377.
In one of my models, I have a model that looks similar to this snippet:
But I think the
@@unique
attribute only handles thestartDate
andendDate
components. My parser isn't panicking, but it is creating a type calledStartDateEndDateCompoundUniqueInput
which ignoresuser
entirely when doingsprint.upsert(...)
Is the
@@unique
constraint completely ignoring non-scalar types in this example?