Frage

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?

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top