Skip to content

Instantly share code, notes, and snippets.

@olivergeorge
Created July 25, 2011 05:43
Show Gist options
  • Save olivergeorge/1103625 to your computer and use it in GitHub Desktop.
Save olivergeorge/1103625 to your computer and use it in GitHub Desktop.
Typical database schema migration using South
# schemamigration
./manage.py schemamigration appname --auto --stdout # sanity check
./manage.py schemamigration appname --auto # generate migration script
# migrate
./manage.py migrate # database migration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment