Setting Up Database Migrations

To set up your database to record migration versions, run the following commands in your activated virtualenv:

# pull in the most recent changes to rcl
bzr pull

# install sqlalchemy-migrate if you don't have it yet
pip install sqlalchemy-migrate

# Put your database under version control
./ version_control

# Set your current db version to 1 since you've already created the database from the model
sqlite3 devdata.db
UPDATE migrate_version SET version=1;

After setting up your database to record migration versions, you can follow the steps recorded at DevelopingWithMigrations to create migrations as necessary.

Last modified 7 years ago Last modified on 09/28/11 18:59:07