Commit ac956759 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 946780: The 'version' column of the 'bz_schema' DB table should be UNIQUE

r=dkl a=sgreen
parent 8ebf35e4
......@@ -1748,6 +1748,9 @@ use constant ABSTRACT_SCHEMA => {
schema_data => {TYPE => 'LONGBLOB', NOTNULL => 1},
version => {TYPE => 'decimal(3,2)', NOTNULL => 1},
],
INDEXES => [
bz_schema_version_idx => {FIELDS => ['version'], TYPE => 'UNIQUE'},
],
},
bug_user_last_visit => {
......
......@@ -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 #
################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment