db push and migrate dev
i used prisma db push, and now i want to create the migration and push to prod. I used migrate dev on local and it wants me to delete all data.
i assume later when i migrate prod i will also lose all data?
4 Replies
Hi @fotoflo
When you push to prod, you will need to use
prisma migrate deploy
to apply the migrations to your production database. This command applies the migrations without resetting the database, ensuring that your data remains intact.hi @RaphaelEtim thanks, can i do it on local to ?
thank you
id prefer to keep my local data as well and also see it working instead of just pray
Yes you should be able to do it on local but it's usually reserved not recommended.
with prisma migrate deploy? @RaphaelEtim but it doesnt work cause you have to migrate dev first
?