From d877c78fffc0dd06137f88e1dd99f526c0abd2fc Mon Sep 17 00:00:00 2001 From: Jesse Weaver Date: Fri, 12 Feb 2016 12:43:32 -0700 Subject: [PATCH] Bug 15411: Update DB rev (3.20.08.002) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julian Maurice (cherry picked from commit af61bfbcf827fc51e2f27f45afce9bec349a0bb4) Signed-off-by: Frédéric Demians --- Koha.pm | 2 +- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Koha.pm b/Koha.pm index faded84005..0d7aa5ad18 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.08.001"; +$VERSION = "3.20.08.002"; sub version { return $VERSION; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index d93c4baf50..b70c14c5ad 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10724,6 +10724,16 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.20.08.002"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + UPDATE `authorised_values` SET `lib`='Non-fiction' WHERE `lib`='Non Fiction'; + }); + + print "Upgrade to $DBversion done (Bug 15411 - Change Non Fiction to Non-fiction in authorised_values)\n"; + SetVersion($DBversion); +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5