سؤال

I was just reading about Django database fixtures. Both dumping and resetting are mentioned.

It seems that dumping is to get rid of a specific data set in a database, and resetting erases all the data from the database. Is that right? Another possible difference I spotted is that maybe dumping is reversible, but resetting isn't?

هل كانت مفيدة؟

المحلول

Dumping does what it says, dumps the data, which you can reuse, import, backup or just delete, reset destroys both your tables and your data giving you practically an empty db. Please bare in mind that reset no longer exists, it has been replaced with flush

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top