From f4f66107dadb82a81bd48c6584c14dad9e80b39a Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 2 Aug 2012 23:56:00 -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') 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'], ], }, -- cgit v1.2.3-24-g4f1b