Wednesday, February 8, 2012

Django south migration commands

Here are commands for HUE beeswax model migration.
  • List all migrations by application
    build/env/bin/hue migrate --list
  • Create migration: create the migration file
    build/env/bin/hue schemamigration beeswax --auto
  • Migrate: create/alert tables in the database
    build/env/bin/hue migrate beeswax
  • Rollback: you just applied 0007, but want to roll back to 0006
    build/env/bin/hue migrate beeswax 0006