silverstripe / sspak

Tool for managing bundles of db/assets from Silverstripe environments
http://silverstripe.github.io/sspak/
BSD 3-Clause "New" or "Revised" License
47 stars 34 forks source link

sspak load doesn't clear db first #28

Closed madmatt closed 8 years ago

madmatt commented 9 years ago

For example, if a table exists in the database that is being overwritten, but that table is not in the sspak database file, then the table remains after the sspak is loaded. This is likely to produce erratic and inconsistent results with websites that rely on this feature completely truncating the existing database and loading from the sspak.

dhensby commented 8 years ago

sspak load /path/to/sspak --drop-db should be what you want