Last active
February 23, 2017 09:55
-
-
Save MarkusH/a67fbf0151ad56199149 to your computer and use it in GitHub Desktop.
sqlall for Django 1.8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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