Can't convert String
field to Enum
in a migration - Postgres
#5893
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
tech/engines/migration engine
Issue in the Migration Engine
Milestone
Bug description
I'm using Postgres. I originally created a
String
field in my prisma schema, but am now trying to convert it to an enum. When I runnpx prisma migrate dev --preview-feature
, I get this error:How to reproduce
String
typeExpected behavior
No errors, field is converted to an enum
Prisma information
Original
New
Environment & setup
(FYI I'm using
npx
when running migratrions)The text was updated successfully, but these errors were encountered: