Prisma: Lift: Enum list migrations do not seem to work

Created on 31 Jul 2019  路  1Comment  路  Source: prisma/prisma

Steps to reproduce:

  1. prisma2 init with MySQL + New schema
  2. Create one model with an enum list. Schema I used:
datasource 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
}
  1. prisma2 lift save && prisma2 lift up

If 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)

bu2-confirmed kinbug

Most helpful comment

This is fixed and available on alpha now.

>All comments

This is fixed and available on alpha now.

Was this page helpful?
0 / 5 - 0 ratings