]> git.ozlabs.org Git - patchwork/commit
[models] Make patches unique on (msgid, project), not just (msgid)
authorJeremy Kerr <jk@ozlabs.org>
Wed, 29 Oct 2008 00:21:05 +0000 (11:21 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 29 Oct 2008 00:21:05 +0000 (11:21 +1100)
commit74425beba0dc641509c5268571ea5328ac8185ec
treef9033b51d3b5608f398b5ce358ba202edefb10ad
parent4da08a17e860b6831f9446af46b2f562efeeb461
[models] Make patches unique on (msgid, project), not just (msgid)

On patchwork.ozlabs.org, we may see multiple patches for different
projects, but with the same message-id.

We want these patches to show up on both projects, so we need to change
the current UNIQUE contstraint on msgid.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/bin/parsemail.py
apps/patchwork/models.py
apps/patchwork/tests/patchparser.py
lib/sql/migration/004-msgid-uniqueness.sql [new file with mode: 0644]