From 4ad27b99a4baa51271e8a69a8bdbfa7c26f2ec92 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 13 Mar 2014 14:40:31 +0000 Subject: [PATCH] Bug 11928: DBRev 3.15.00.025 Signed-off-by: Galen Charlton --- installer/data/mysql/updatedatabase.pl | 8 ++++---- kohaversion.pl | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index fe674d5c8e..9039766dd2 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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; diff --git a/kohaversion.pl b/kohaversion.pl index c8f041b19e..655c3c8b69 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -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 -- 2.20.1