[Django]-Django 1.8 Run a specific migration

185👍

You can tell Django to move to a specific migration

./manage.py migrate myapp 0005_migration_to_run

But Django will run every migration up to (or back to) the migration you’ve chosen.

You could try faking to the migration before

./manage.py migrate --fake myapp 0004_previous_migration
./manage.py migrate myapp 0005_migration_to_run

You might then want to fake to the migration you started at.

Leave a comment