ojoaoguilherme
Explore posts from serversPPrisma
•Created by ojoaoguilherme on 10/18/2024 in #help-and-questions
Squashing migrations from Dev into Main
I have a production database and a development database which has different prisma models
I want to squash my development migrations which I branched from production, I managed to do that on development but it reset my development database so I concerned I am going to loose all my data
What is the correct flow of doing this, I am confused if I need to literaly delete manualy all my migrations or
npx prisma migrate reset
, any solutions??
I have to spin up this update max by monday, its a blocker for a feature we are releasing2 replies
I need help on deploying my development database to production without losing any data
I mistakenly ran the command
npx prisma migrate dev
on my production env but did not accept when the message says that it would result in resting the database
Basically what I have been doing until now is developing all our backend and database migrations on a development branch and merging them in production branch and applying the migration to production env with npx prisma db push
but know when I ran npx prisma migrate dev
it would reset the database, and I am afraid of running npx prisma db push
and not even give me the change of canceling if it resets my database
this is the message
19 replies