Bug 13889: DBRev 3.19.00.036
authorTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 4 May 2015 14:16:33 +0000 (11:16 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 4 May 2015 14:24:00 +0000 (11:24 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

installer/data/mysql/atomicupdate/bug_13889_add_cronjoblog_syspref.sql [deleted file]
installer/data/mysql/updatedatabase.pl
kohaversion.pl

diff --git a/installer/data/mysql/atomicupdate/bug_13889_add_cronjoblog_syspref.sql b/installer/data/mysql/atomicupdate/bug_13889_add_cronjoblog_syspref.sql
deleted file mode 100644 (file)
index 524fbac..0000000
+++ /dev/null
@@ -1 +0,0 @@
-INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo');
index 128d8ad..a39a19f 100755 (executable)
@@ -10328,6 +10328,16 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
+$DBversion = "3.19.00.036";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q|
+        INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
+        VALUES ('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo')
+    |);
+    print "Upgrade to $DBversion done (Bug 13889: Add cron jobs information to system log)\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.
index 3bd5475..113f8ca 100644 (file)
@@ -17,7 +17,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.19.00.035';
+    our $VERSION = '3.19.00.036';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install