Note to Self: More on South
Setup being along the dev → test → prod lines, to correctly manage database migrations we first set things up at dev:
manage.py syncdb --noinput manage.py convert_to_south <app> manage.py createsuperuser
At this point the South migrations are being pushed to repository and pulled in at test:
manage.py syncdb --noinput manage.py migrate manage.py migrate <app> 0001 --fake manage.py createsuperuser
Now, back at dev, after a change to one of the models:
manage.py schemamigration <app> --auto manage.py migrate <app>And, after push/pull, at test:
manage.py migrate <app>
Categorised as: snippet