From 5fec49009342c77860b054996008f8ef5269af68 Mon Sep 17 00:00:00 2001 From: Jesse Weaver Date: Fri, 12 Feb 2016 12:43:32 -0700 Subject: [PATCH] Bug 15446 - DBrev 3.23.000.018 Signed-off-by: Jesse Weaver --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_15446.sql | 1 - installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_15446.sql diff --git a/Koha.pm b/Koha.pm index a71409da31..23ab78e051 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.23.00.017"; +$VERSION = "3.23.00.018"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_15446.sql b/installer/data/mysql/atomicupdate/bug_15446.sql deleted file mode 100644 index c3f40e2b67..0000000000 --- a/installer/data/mysql/atomicupdate/bug_15446.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE systempreferences SET value="0" where type="YesNo" and value=";" diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 99046acf8d..561abb70a1 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -11713,6 +11713,16 @@ remove_tree( $tmp ) if -d $tmp; } +$DBversion = "3.23.00.018"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + UPDATE systempreferences SET value="0" where type="YesNo" and value=""; + }); + + print "Upgrade to $DBversion done (Bug 15446 - Fix systempreferences rows where type=YesNo and value='')\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