Bug 15446 - DBrev 3.23.000.018
authorJesse Weaver <jweaver@bywatersolutions.com>
Fri, 12 Feb 2016 19:43:32 +0000 (12:43 -0700)
committerJesse Weaver <jweaver@bywatersolutions.com>
Fri, 12 Feb 2016 19:43:32 +0000 (12:43 -0700)
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/bug_15446.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index a71409d..23ab78e 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.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 (file)
index c3f40e2..0000000
+++ /dev/null
@@ -1 +0,0 @@
-UPDATE systempreferences SET value="0" where type="YesNo" and value=";"
index 99046ac..561abb7 100755 (executable)
@@ -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.