Production Migrations after Dev Migrations
Hello, I push my project to a GitHub repo, and I did an initial migration from my dev database and then did migrations after that. I had already hosted my app on Vercel though.
My question, is how can I go about creating an initial migration for my production code if I already pushed my dev migrations to the GitHub repository that is then sent to Vercel?
I think my dev migrations are in the repo the prod is using, so when I run the init prisma migration, the code throws an error.
Do I need to have a production branch and dev branch? Where the prod has the migrations for prod? And if so how would I best go about setting that up if I already pushed my old migrations?
I already have separate DB’s for each case
My question, is how can I go about creating an initial migration for my production code if I already pushed my dev migrations to the GitHub repository that is then sent to Vercel?
I think my dev migrations are in the repo the prod is using, so when I run the init prisma migration, the code throws an error.
Do I need to have a production branch and dev branch? Where the prod has the migrations for prod? And if so how would I best go about setting that up if I already pushed my old migrations?
I already have separate DB’s for each case