How can make a change to the database with Prisma.js
without having to reset the whole thing?
if I have used this command
npx prisma migrate dev --name role-makeOptional-NormalizedName
I will lose all of the data in my database but I don't lose my data.
In my case I wanted to change String
to String?
in schema.prisma
file
NormalizedName String? @unique @db.VarChar(64)
Is there a proper command to avoid losing the data?