문제

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