From 23eaf30f1bb04e6698d11689de28dd1067b560e2 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 2 Aug 2012 23:58:56 -0400 Subject: Bug 756953 - Dependencies table should have unique index so that duplicate entries are blocked r/a=LpSolit --- Bugzilla/DB/Schema.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/DB/Schema.pm') 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'], ], }, -- cgit v1.2.3-24-g4f1b