1. Chris Beaven
  2. southwest

Overview

southwest

A quick way to alter the database schema based on model changes for an app which doesn't (yet) need the power of full south migrations.

Usage

Initially, you'll need to set up the initial definitions for all (non-south) apps:

manage.py syncdb

Then after making a model change to an app you can see the changes, and optionally apply them (requires confirmation) by using the new alterdb command:

manage.py alterdb myapp

If you'd rather just see the SQL than alter the database directly:

manage.py alterdb myapp --sql

If you have manually altered the database and would like to forget the old model definition for an app, you can reset the definition:

manage.py alterdb myapp --reset