summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-08-14 00:09:28 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-08-14 00:09:28 +0200
commitac956759a67e7bff80b8a987cf7f6b646d1ee37f (patch)
tree136b585d1be1cdcd4aeea4fe84cd25611779f772 /Bugzilla/Install
parent8ebf35e43c3be63a6ad91239d4dee19ab50e769f (diff)
downloadbugzilla-ac956759a67e7bff80b8a987cf7f6b646d1ee37f.tar.gz
bugzilla-ac956759a67e7bff80b8a987cf7f6b646d1ee37f.tar.xz
Bug 946780: The 'version' column of the 'bz_schema' DB table should be UNIQUE
r=dkl a=sgreen
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r--Bugzilla/Install/DB.pm4
1 files changed, 4 insertions, 0 deletions
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 #
################################################################