Ritzyyy
Ritzyyy
PPrisma
Created by Ritzyyy on 9/13/2024 in #help-and-questions
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
}
model ItemTasks {
//other value
itemStatus ItemStatus @default(unpaid)
itemTaskStatus ItemTaskStatus?
//other value
}

enum ItemStatus {
unpaid
InPo
InInv
IsPaid
}
enum ItemTaskStatus {
unpaid
InPo
InInv
IsPaid
}
2 replies