Launch southern migrations for all applications

I just started using the South and still in the process of figuring this out. Say I have an initial migration of a script model. Then I want to add a column to the model and create a wrapper script for it. Then I add another column to another model and create another script migration for it. I create a migration script by running ./manage.py schemamigration myappname --auto .

Let's say I have a server on which my project is deployed, but it was based on the original application scheme, but now it lags behind the repository in two migrations. I can update it by running ./manage.py migrate myappname . This would allow updating these application models by performing new migrations, if I am right, but I must explicitly specify the application.

Does South allow all pending migrations to run for all applications in a Django project? If so, how? I could not find anything in the docs about this.

Thanks a ton to everyone.

+7
source share
2 answers

To update all applications in all of their migrations, run:

 ./manage.py migrate 

Simple. :)

+18
source

You can also try:

 ./manage.py syncdb --migrate 

to migrate all apps that use south and sync apps that don't.

+1
source

All Articles