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

1 comment:

  1. I like your blog, I read this blog please update more content on python, further check it once at python online training

    ReplyDelete