Skip to content

Instantly share code, notes, and snippets.

@MarkusH
Last active February 23, 2017 09:55
Show Gist options
  • Save MarkusH/a67fbf0151ad56199149 to your computer and use it in GitHub Desktop.
Save MarkusH/a67fbf0151ad56199149 to your computer and use it in GitHub Desktop.
sqlall for Django 1.8
for mig in $(python manage.py showmigrations --plan | awk '{split($0, a, " "); print a[2]}') ; do python manage.py sqlmigrate ${mig%.*} ${mig#*.} ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment