Rob
09/29/2022, 4:47 AMNo cast exists, the column would be dropped and recreated, which cannot be done since the column is required and there is data in the table.
Is there no way I can just get it to add the column, but fill out a default value to fulfill the requirements?Nurul
09/29/2022, 7:45 AMRob
09/29/2022, 4:46 PMmodel test {
id Int @id @default(autoincrement())
type typeEnum
}
Rob
09/29/2022, 4:50 PM⢠Step 1 Changed the type of `type` on the `test` table. No cast exists, the column would be dropped and recreated, which cannot be done since the column is required and there is data in the table.
Rob
09/29/2022, 4:50 PMRob
09/29/2022, 4:50 PMNurul
09/30/2022, 12:02 PMIād like to use migrate to not have to remove everything from my DBWe have received this feedback from the community and are actively working to tackle this issue.