Skip to content

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.

  1. Sync your DB:
$ ./manage.py syncdb
  1. Fake migrate to 0001 and migrate to the lastest migration:
$ ./manage.py migrate codespeed 0001 --fake
$ ./manage.py migrate codespeed
  1. 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).
  2. Run the script migrate_script.py. It will associate each Revision to the related trunk branch.

Now you can use Codespeed 0.8.

Clone this wiki locally