python - How to apply all Django migrations initially -
in django < 1.7, apply schema changes blank database running:
manage.py syncdb --all however, in django >= 1.7, though syncdb command technically still there, functionality seems have been removed, since --all option no longer available. command appears wrapper around migrate, running applies migrations individually, can take huge amount of time if have lot of migrations.
i have script initializes blank database schema, , used take minute takes 30, insane performance drop upgrade. there way old functionality back?
try python manage.py makemigrations in migration folder, doc created. in there can review migrations applyed when run next command.
then
python manage.py migrate this applay migrations of apps installed in settings.
Comments
Post a Comment