have the sql for a django migration automatically be in the migration

9 views
Skip to first unread message

Alec Brunelle

unread,
Sep 9, 2015, 4:04:23 PM9/9/15
to Django users
`python manage.py makemigrations --sql` would then have as a string in your migrations the sql that is actually runs. I know you can do this with `python manage.py sqlmigrate appname migrationnumber` but then you have to remember to copy and paste every time. How useful would this feature be for people?
Reply all
Reply to author
Forward
0 new messages