summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-08-03 05:58:56 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-08-03 05:58:56 +0200
commit23eaf30f1bb04e6698d11689de28dd1067b560e2 (patch)
tree469b7eb4c144755a3203b5cd53565bb9fa21ca51 /Bugzilla/DB
parent469323e21969579dcdc3a6b913c8ac9df443df70 (diff)
downloadbugzilla-23eaf30f1bb04e6698d11689de28dd1067b560e2.tar.gz
bugzilla-23eaf30f1bb04e6698d11689de28dd1067b560e2.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 5a88540a9..6dd78d206 100644
--- a/Bugzilla/DB/Schema.pm
+++ b/Bugzilla/DB/Schema.pm
@@ -436,7 +436,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'],
],
},