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