Minor fix to migration cleanup target.

This commit is contained in:
Chris Church 2013-05-24 18:12:20 -04:00
parent c0aaff7850
commit c71a04dfb0

View File

@ -50,7 +50,7 @@ dbchange:
migrate: syncdb
# This command fixes migrations following the cleanup for the 1.2b1 release.
-(python manage.py migrate main 2>&1 | grep 0017_changes) && python manage.py migrate main --delete-ghost-migrations --fake 0001_v12b1_initial
-(python manage.py migrate main 2>&1 | grep 0017_changes) && (python manage.py migrate main --delete-ghost-migrations --fake 0001_v12b1_initial || python manage.py migrate main --fake)
# run this to apply changes to the model
python manage.py migrate --noinput