Django Users,

I'm having a problem reversing a Django South migration while also
reverting my source code to an an older version.  Any help?

Details:

My algorithm for doing a release is essentially:
1.  Update the source files
2.  % python manage.py migrate --all

This works great when moving forward.  Step 1 creates new migration
files.  Step 2 looks in the "south_migrationhistory" DB table to see
which migration files have not yet been run, and runs them.  Simple!

Not so great when moving backwards.  For example, when moving from
release 5 back to release 3.  Step 1 deletes the migration files for
releases 4 and 5, leaving only those for releases 1-3.  Step 2 looks
in the "south_migrationhistory" DB table, and decides to reverse
some of the migrations that have already been run, but the migration
files are already gone.  So it complains about GhostMigrations.

I have a few ideas about how to deal with this, but it must be a common
problem.  What do you folks do?

Thanks!
--Fred
------------------------------------------------------------------------
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.
------------------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5351AAE1.6010506%40bristle.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to