Hi everyone, I used to use `prisma db push` to upd...
# orm-help
a
Hi everyone, I used to use
prisma db push
to update my database, but this time I need to use
prisma db migrate
. However, the CLI told me I nee to reset my database with data lost. How can I handle it? Thank you.
1
n
Hey there 👋 if you’re using
prisma migrate dev
, it will occasionally ask you to delete some data in your development database. If that’s inconvenient in your scenario, you can export the data before resetting and then import it afterwards again (another nice option is to use a seed script that can always re-seed the DB with some data after it was reset) 🙏 Let me know if that helps or if you have any further questions 🙂