PrismaP
Prisma17mo ago
1 reply
Ritzyyy

update enum on production

how to change the itemStatus to itemTaskStatus along with the enum without deleting the existing data. i want to use the expand and contract method but i keep on getting p3006 error.
model ItemTasks {
  //other value
  itemStatus       ItemStatus      @default(unpaid)
  itemTaskStatus   ItemTaskStatus?
  //other value
}

enum ItemStatus {
  unpaid
  InPo
  InInv
  IsPaid
}
enum ItemTaskStatus {
  unpaid
  InPo
  InInv
  IsPaid
}
Was this page helpful?