When I add a new required field with a default val...
# orm-help
j
When I add a new required field with a default value, I would expect Prisma to apply this default value to existing records during deployment but this seems not to be the case. What is the appropriate way to add a required field with the default value applied to existing records, any tips?
n
We write quick little mutations that we run in the play ground to ensure all rows with the column have the proper default value after running the migration
j
Ok, thanks... Yeah so far I've been just writing custom scripts, but I was hoping there's an easier solution that just picked up the default value automatically
Cheers!