Steps to reproduce:
prisma2 init with MySQL + New schemadatasource db {
provider = "mysql"
url = "mysql://root:prisma@localhost:3306/prisma2managed?sslmode=prefer"
}
model User {
id Int @id
permissions Permission[]
}
enum Permission {
ADMIN
USER
COLLABORATOR
OWNER
}
prisma2 lift save && prisma2 lift upIf you take a look at the DB now, there isn't a permissions column for the User table.
FWIW, non-list enums work fine. (permissions Permission)
This is fixed and available on alpha now.
Most helpful comment
This is fixed and available on alpha now.