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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -