Regression in relation field name deduplication #16547
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/regression
A reported bug in functionality that used to work before.
team/schema
Issue for team Schema.
tech/engines/introspection engine
Issue in the Introspection Engine
topic: relations
Milestone
Bug description
If a relation field would be named in a similar manner as a scalar field in the model, we used to deduplicate it and generate a name that hopefully would not clash with the scalar field in 4.6.0. In version 4.7.0 this feature was removed.
In version 4.6.0 we did:
And in version 4.7.0 we do:
As we can see, in the latter the relation and scalar field are named as
b
, leading to a validation error.The PR in culprit that changed the behavior: prisma/prisma-engines#3381
The text was updated successfully, but these errors were encountered: