summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-08-03 05:56:00 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-08-03 05:56:00 +0200
commitf4f66107dadb82a81bd48c6584c14dad9e80b39a (patch)
tree92a59293011e7b2219ac6701305fb9af3e7d0b42 /Bugzilla/DB
parentc6e47461e32197e566a687f2654b18ef908a8c30 (diff)
downloadbugzilla-f4f66107dadb82a81bd48c6584c14dad9e80b39a.tar.gz
bugzilla-f4f66107dadb82a81bd48c6584c14dad9e80b39a.tar.xz
Bug 756953 - Dependencies table should have unique index so that duplicate entries are blocked
r/a=LpSolit
Diffstat (limited to 'Bugzilla/DB')
-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'],
],
},