Regression in enum default value handling in 4.7.0 #16546
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: default
topic: enum
"type"/block `enum`
Milestone
Bug description
In a case where we cannot decipher any name for the enum variant, in 4.7.0 a default value using this variant is rendered wrong.
In version 4.6.0 we did:
And in version 4.7.0 we do:
Both data models are invalid, but the old version had less things to fix.
git bisect
shows the PR in culprit: prisma/prisma-engines#3381The text was updated successfully, but these errors were encountered: