tobami/codespeed — pull request #124 by alkino (2012-09-21 18:40:49+00:00)
Title: Bug when use Postgresql as backend.

Hi,
I want to use Postgresql as database and I encountered problems during migration with south.
I propose 2 patchs.
The first concern "codespeed/codespeed/migrations/0006autochg_field_revision_branch.py".
Before it was altering table to transform Revision.branch as a key to Branch. But Postgresql refuse to do so because it should transform a varchar as an int. So I delete branch and create a new branch_id field. More over this action delete the unique that will be delete in the '0007_autodel_unique_revision_commitid_project_branch_add_unique_revision.py'. So, i should delete the unique and recreate an unique.

The second patch concern '0012autoadd_field_benchmark_parent_add_field_project_commit_browsing_ur.py'.
In this one you add a column who was already create in the 0011. It seems that a mix up occured 'cause there is to patch 0011 and the name of the 12 contains a part of the 0011.

So I propose 2 patchs for you in pull request.

Nicolas