Skip to content

Instantly share code, notes, and snippets.

@jibs
Created March 29, 2013 12:45
Show Gist options
  • Save jibs/5270596 to your computer and use it in GitHub Desktop.
Save jibs/5270596 to your computer and use it in GitHub Desktop.
Selectively delete south migration history in Django

To reset migrations of just a single app, say polls

from south.models import MigrationHistory
MigrationHistory.objects.filter(app_name='polls').delete()

Make sure you delete the migrations folder (at APPNAME/migrations)

./manage.py schemamigration --initial polls
./manage.py migrate --fake

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment