Does anyone have a good ‘dev-> prod’ flow when ...
# orm-help
z
Does anyone have a good ‘dev-> prod’ flow when it comes to updating schema without losing data? Especially with supabase?
a
Hey ZB 👋 , Do you have any specific questions about the workflow or just asking for general experiences? The hope is that if all your migrations work in a dev or staging environment, you shouldn’t have any issues going to production. If you want to be extra sure, you can use our new
prisma migrate diff
command (https://www.prisma.io/docs/reference/api-reference/command-reference#migrate-diff) to check how your migration will run in production.
z
Hello Austin :) Thanks for the reply and I'm asking about the workflow. If making a change and then migrating, will vercel automatically run the most recent migration version too when redeploying?
n
Hey ZB 👋 If you wish to update the schema without losing your data I think you are referring to Baselining. For deploying to vercel does this article help? Let me know if I misunderstood something.