8

This seems to be outdated as the reset command does not seem to be found using the version of South I am using, which is the most recent I believe.

Anyways, say you are in production and things get really messy. What is the best current way to start fresh with a Django app as far as cleaning up the migration history?

Community
  • 1
  • 1
Joker
  • 2,119
  • 4
  • 27
  • 38
  • possible duplicate of [What's the recommended approach to resetting migration history using Django South?](http://stackoverflow.com/questions/4625712/whats-the-recommended-approach-to-resetting-migration-history-using-django-sout) – Louis Apr 30 '15 at 22:55

1 Answers1

13

Steps:

  1. Erase every /migrations folder inside your apps
  2. Go to the database and drop the south_migrationhistory table (or delete its rows)
  3. (Optional) Remove south from your installed apps (if you want to get rid of south, if not, leave it alone)

Done

Notice that you may drop the table or delete all its rows.

If you drop it you'll have to syncdb again.

Hope this helps!

Paulo Bu
  • 29,294
  • 6
  • 74
  • 73