4 ms·
Migrations are per-app, but the command is shown as python manage.py makemigrations Using South, it was python manage.py schemamigration app_name How do
by japhyr 13y ago
Migrations are per-app, but the command is shown as
python manage.py makemigrations
Using South, it was
python manage.py schemamigration app_name
How does django know which app to build migrations for?
- andrewgodwin 13y agoIt does them all at once. The new system knows about interdependencies, so if you have ForeignKeys between apps it'll make all of them in the right order.
- deleted 13y ago[deleted]
- arocks 13y agoSo if I understand correctly, "makemigrations" will convert all apps to use migrations except apps which were created using previous versions of Django?
- andrewgodwin 13y agoIt will prompt you if an app doesn't yet have migrations and ask if you want it to. That prompt is currently a bit aggressive - asking you every time - but that will be fixed soon.
- antihero 13y agoHas it solved that issue where say I have a TinyMCE field, then I ditch TinyMCE and use CKEditor, that I'd still need TinyMCE installed in order to do the old migration, despite it just being a TextField database-wise?
- deleted 13y ago[deleted]