``` You are creating a required field but there ar...
# orm-help
t
Copy code
You are creating a required field but there are already nodes present that would violate that constraint
I know that this is an "expected behaviour" that adding required fields with default doesn't work, but how this can be worked around?
h
Modify data -> deploy
t
manually add columns in db?)
h
If you are creating new you can setup default value
t
it is set in schema – it doesn't work
because this is not implemented still https://github.com/prismagraphql/prisma/issues/2323
h
you can make workaround 🙂 deploy without required and then add data
then add required
w
run a graphql mutation through the playground to add your data. eg:
updateManyX(where:{ newField:null }, data: { newField: newValue })
(using the process huv1k described tho !)
t
so without manual work this is impossible. not able to properly deploy anything with CI/CD.. terrifying.
n
Please join the #migrations working group and provide your input, we are currently designing a new migration system that keeps the simplicity/UX of the current migration system while handling the different migrations that are currently a bit tricky in a robust and straight forward way 🙂
👍 2
h
@terion i rly don't get you, because prisma is still in development its not finished product and you expect to handle every edge case?
👍 1