Ben Ezard
07/21/2022, 12:48 AMprisma db push
works for MongoDB, but is there a way to prevent it from making breaking changes? (e.g. deleting fields, changing the type of fields, etc)
Given that Prisma MIgrate doesn't currently support MongoDB, I'm trying to figure out a good way of replicating the way that migrations work for relational DBsNurul
07/21/2022, 6:54 AMnpx prisma db push
is supposed to be used for quick prototyping. I don’t think there’s a way to prevent breaking changes, though the command will explicitly ask in case the database needs to be reset.
This guide might be useful, it describes cases where using db push
would be recommended.Ben Ezard
07/21/2022, 8:59 AMNurul
07/22/2022, 4:08 PM