Skip to content

Instantly share code, notes, and snippets.

@BenAtWide
Created November 16, 2011 15:21
Show Gist options
  • Save BenAtWide/1370315 to your computer and use it in GitHub Desktop.
Save BenAtWide/1370315 to your computer and use it in GitHub Desktop.
Basic commands for South migrations.
# create initial migration from existing models
./manage.py schemamigration app_name --initial
# apply the migration
./manage.py migrate app_name
# make a change, create a new migration
./manage.py schemamigration app_name --auto
# apply the new migration
./manage.py migrate app_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment