Aurora
07/09/2022, 3:53 PMprisma 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.nikolasburk
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 🙂