From d92680e6b7ce99b86c5648bd356266e3d9d8e672 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Wed, 2 Dec 2015 08:32:45 +0100 Subject: [PATCH] Bug 14978: DBRev 3.20.06.001 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric Demians --- Koha.pm | 2 +- installer/data/mysql/updatedatabase.pl | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Koha.pm b/Koha.pm index 24b8b72431..de944585d0 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "3.20.06.000"; +$VERSION = "3.20.06.001"; sub version { return $VERSION; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 9d3a62917e..cd538b76c9 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10676,15 +10676,13 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } - - -$DBversion = 'XXX'; +$DBversion = '3.20.06.001'; if ( CheckVersion($DBversion) ) { my $create_table_issues = @{ $dbh->selectall_arrayref(q|SHOW CREATE TABLE issues|) }[0]->[1]; if ($create_table_issues !~ m|UNIQUE KEY.*itemnumber| ) { $dbh->do(q|ALTER TABLE issues ADD CONSTRAINT UNIQUE KEY (itemnumber)|); } - print "Update to $DBversion done (Bug 14978: Make sure issues.itemnumber is a unique key)\n"; + print "Upgrade to $DBversion done (Bug 14978: Make sure issues.itemnumber is a unique key)\n"; SetVersion($DBversion); } -- 2.39.5