aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB/Schema.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-08-02 23:56:00 -0400
committerDave Lawrence <dlawrence@mozilla.com>2012-08-02 23:56:00 -0400
commitf4f66107dadb82a81bd48c6584c14dad9e80b39a (patch)
tree92a59293011e7b2219ac6701305fb9af3e7d0b42 /Bugzilla/DB/Schema.pm
parentc6e47461e32197e566a687f2654b18ef908a8c30 (diff)
downloadbugs-f4f66107dadb82a81bd48c6584c14dad9e80b39a.tar
bugs-f4f66107dadb82a81bd48c6584c14dad9e80b39a.tar.gz
bugs-f4f66107dadb82a81bd48c6584c14dad9e80b39a.tar.bz2
bugs-f4f66107dadb82a81bd48c6584c14dad9e80b39a.tar.xz
bugs-f4f66107dadb82a81bd48c6584c14dad9e80b39a.zip
Bug 756953 - Dependencies table should have unique index so that duplicate entries are blocked
r/a=LpSolit
Diffstat (limited to 'Bugzilla/DB/Schema.pm')
-rw-r--r--Bugzilla/DB/Schema.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm
index 3330c846a..156dca378 100644
--- a/Bugzilla/DB/Schema.pm
+++ b/Bugzilla/DB/Schema.pm
@@ -416,7 +416,8 @@ use constant ABSTRACT_SCHEMA => {
DELETE => 'CASCADE'}},
],
INDEXES => [
- dependencies_blocked_idx => ['blocked'],
+ dependencies_blocked_idx => {FIELDS => [qw(blocked dependson)],
+ TYPE => 'UNIQUE'},
dependencies_dependson_idx => ['dependson'],
],
},