Migrate: Could not render the variants of enum

Created on 9 Apr 2020  路  3Comments  路  Source: prisma/migrate

Bug description

Reason: [src/libcore/result.rs:1188:5] called Result::unwrap() on an Err value: Could not render the variants of enum User_status

How to reproduce

npx prisma2 migrate save --experimental

Expected behavior

Migrate the current schema

Prisma information

model User {
  id         String     @default(uuid()) @id
  personId   Int        @map("person_id")
  userTypeId Int        @map("user_type_id")
  email      String     @unique
  avatar     String
  status     UserStatus
  createdAt  DateTime   @default(now()) @map("created_at")
  updatedAt  DateTime   @default(now()) @map("updated_at")

  @@map("users")
}

enum UserStatus {
  CONFIRMED
  CANCELED
  BLOCKED
}

Environment & setup

MYSQL
Prisma 2.0.0-beta.1

bu2-confirmed kinbug

Most helpful comment

The PR is merged and the fix will land in the next alpha release and in beta 3

All 3 comments

Thanks for reporting this bug! It should be fixed by https://github.com/prisma/prisma-engines/pull/668

The PR is merged and the fix will land in the next alpha release and in beta 3

Closing due to inactivity, please comment here if you are still facing this 馃槂

Was this page helpful?
0 / 5 - 0 ratings