-
Notifications
You must be signed in to change notification settings - Fork 125
How to migrate DB schema to 0.8+
tobami edited this page Jul 17, 2011
·
1 revision
If you were using version 0.7 and want to use 0.8, you'll need to migrate your DB schema. It's easy to do it. Just follow the instructions bellow.
- Sync your DB:
$ ./manage.py syncdb
- Fake migrate to 0001 and migrate to the lastest migration:
$ ./manage.py migrate codespeed 0001 --fake
$ ./manage.py migrate codespeed
- For each project, you need to create a trunk branch (a trunk branch is a Branch with name='default'). You can do that by running the
create_trunks.py
script, manually in the shell or using the admin page. A Branch has two fiels: the name (CharField) and project (ForeignKey referencing a Project). - Run the script
migrate_script.py
. It will associate each Revision to the related trunk branch.
Now you can use Codespeed 0.8.