From ac956759a67e7bff80b8a987cf7f6b646d1ee37f Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Fri, 14 Aug 2015 00:09:28 +0200 Subject: Bug 946780: The 'version' column of the 'bz_schema' DB table should be UNIQUE r=dkl a=sgreen --- Bugzilla/Install/DB.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Bugzilla/Install') diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index d317ee594..bb82f5e2d 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -741,6 +741,10 @@ sub update_table_definitions { $dbh->bz_alter_column('logincookies', 'cookie', {TYPE => 'varchar(22)', NOTNULL => 1, PRIMARYKEY => 1}); + # 2015-07-16 LpSolit@gmail.com - Bug 946780 + $dbh->bz_add_index('bz_schema', 'bz_schema_version_idx', + {FIELDS => ['version'], TYPE => 'UNIQUE'}); + ################################################################ # New --TABLE-- changes should go *** A B O V E *** this point # ################################################################ -- cgit v1.2.3-24-g4f1b