Skip to content

Instantly share code, notes, and snippets.

@cipherself
Last active August 29, 2015 14:04
Show Gist options
  • Save cipherself/20d06d63d3b138a05f8d to your computer and use it in GitHub Desktop.
Save cipherself/20d06d63d3b138a05f8d to your computer and use it in GitHub Desktop.
South cheatsheet

South

Initial app migration

./manage.py schemamigration myapp --initial

Common migrations

./manage.py schemamigration myapp --auto
./manage.py migrate myapp

Update most recent migration

./manage.py schemamigration myapp --auto --update
./manage.py migrate myapp

List all migrations

./manage.py migrate --list

List migrations from a single app

./manage.py migrate myapp --list

List applied migrations only

./manage.py migrate --list | grep -v "*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment