DBrev Bug 16070 - Empty (undef) system preferences may cause some issues
authorBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 31 Mar 2016 19:56:00 +0000 (19:56 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 31 Mar 2016 19:56:00 +0000 (19:56 +0000)
in combination with memcache

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/bug_16070.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index fc86716..54d28d6 100644 (file)
--- 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.042";
+$VERSION = "3.23.00.043";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_16070.sql b/installer/data/mysql/atomicupdate/bug_16070.sql
deleted file mode 100644 (file)
index f02ee5e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-UPDATE systempreferences SET value="" WHERE value IS NULL;
index 1ef9a9b..ff0ff94 100755 (executable)
@@ -12064,6 +12064,16 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
     SetVersion($DBversion);
 }
 
+$DBversion = "3.23.00.043";
+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
+    $dbh->do(q{
+            UPDATE systempreferences SET value="" WHERE value IS NULL;
+            });
+
+    print "Upgrade to $DBversion done (Bug 16070 - Empty (undef) system preferences may cause some issues in combination with memcache)\n";
+    SetVersion($DBversion);
+}
+
 
 # DEVELOPER PROCESS, search for anything to execute in the db_update directory
 # SEE bug 13068