← Back to team overview

caneypuggies team mailing list archive

Your first database migration

 

I just created a database migration
<http://bazaar.launchpad.net/%7Ecaneypuggies/reformedchurcheslocator/trunk/revision/30>
to fix this bug
<https://bugs.launchpad.net/reformedchurcheslocator/+bug/624972>. 
You'll need to set up your database to track migrations following these
instructions:

http://caneypuggies.alwaysreformed.com/wiki/BeginningMigrations

Then you'll need to run these commands to execute the migration I created:

cd ~/Projects/reformedchurcheslocator
bzr pull
source ../tg21env/bin/activate

# execute the migration
./manage.py upgrade

Then your database schema (its structure, not data) should now match
mine.  Now that I got one migration to work, I posted info on how to
create a migration here so you can create them too (a couple of your
blueprints already require that you make a migration):

http://caneypuggies.alwaysreformed.com/wiki/DevelopingWithMigrations

General documentation on database migrations is here:

http://caneypuggies.alwaysreformed.com/wiki/PastMeetingMinutes#CodeOrganizationDatabaseMigrations
http://caneypuggies.alwaysreformed.com/wiki/CheatSheets#SQLAlchemy

Tim