Bug 11928: DBRev 3.15.00.025
authorGalen Charlton <gmc@esilibrary.com>
Thu, 13 Mar 2014 14:40:31 +0000 (14:40 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 13 Mar 2014 14:40:31 +0000 (14:40 +0000)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index fe674d5..9039766 100755 (executable)
@@ -7946,7 +7946,7 @@ if (CheckVersion($DBversion)) {
 }
 
 $DBversion = "3.15.00.016";
-if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
+if (CheckVersion($DBversion)) {
     $dbh->do("ALTER TABLE biblioitems CHANGE url url TEXT NULL DEFAULT NULL");
     $dbh->do("ALTER TABLE deletedbiblioitems CHANGE url url TEXT NULL DEFAULT NULL");
     print "Upgrade to $DBversion done (Bug 11268 - Biblioitems URL field is too small for some URLs)\n";
@@ -8006,14 +8006,14 @@ if ( CheckVersion($DBversion) ) {
 }
 
 $DBversion = "3.15.00.019";
-if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
+if ( CheckVersion($DBversion) ) {
     $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer')");
     print "Upgrade to $DBversion done (Bug 11256: Add system preference OpacMaxItemsToDisplay)\n";
     SetVersion($DBversion);
 }
 
 $DBversion = "3.15.00.020";
-if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
+if ( CheckVersion($DBversion) ) {
     $dbh->do(q|
         INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES('MaxItemsForBatch','1000',NULL,'Max number of items record to process in a batch (modification or deletion)','Integer')
     |);
@@ -8065,7 +8065,7 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
-$DBversion = "3.15.00.XXX";
+$DBversion = "3.15.00.025";
 if ( CheckVersion($DBversion) ) {
     $dbh->do(q{
         DROP TABLE aqorderdelivery;
index c8f041b..655c3c8 100644 (file)
@@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.15.00.024';
+    our $VERSION = '3.15.00.025';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install