From af61bfbcf827fc51e2f27f45afce9bec349a0bb4 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.22.03.001) Signed-off-by: Julian Maurice --- Koha.pm | 2 +- .../atomicupdate/bug_15411-change_to_non-fiction.sql | 1 - installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_15411-change_to_non-fiction.sql diff --git a/Koha.pm b/Koha.pm index 0ab398c300..d17c006d57 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.22.03.000"; +$VERSION = "3.22.03.001"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_15411-change_to_non-fiction.sql b/installer/data/mysql/atomicupdate/bug_15411-change_to_non-fiction.sql deleted file mode 100644 index 9aff0fa4ad..0000000000 --- a/installer/data/mysql/atomicupdate/bug_15411-change_to_non-fiction.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE `authorised_values` SET `lib`='Non-fiction' WHERE `lib`='Non Fiction'; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 230a086ca4..44778fe2bc 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -11444,6 +11444,16 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.22.03.001"; +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