From aa8bd7a09809397808c24f3980f2a3335289d682 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 12 May 2015 10:19:03 -0300 Subject: [PATCH] Koha 3.20 beta Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- installer/data/mysql/updatedatabase.pl | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Koha.pm b/Koha.pm index f31ee1580d..d42ed5c7c4 100644 --- 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.19.00.038"; +$VERSION = "3.19.00.039"; sub version { return $VERSION; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 394e4ba816..22742512ea 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -9825,7 +9825,10 @@ if ( CheckVersion($DBversion) ) { $DBversion = "3.19.00.010"; if ( CheckVersion($DBversion) ) { - $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('SessionRestrictionByIP','1','Check for Change in Remote IP address for Session Security. Disable when remote ip address changes frequently.','','YesNo')"); + $dbh->do(q| + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) + VALUES('SessionRestrictionByIP','1','Check for Change in Remote IP address for Session Security. Disable when remote ip address changes frequently.','','YesNo') + |); print "Upgrade to $DBversion done (Bug 5511: SessionRestrictionByIP)\n"; SetVersion ($DBversion); } @@ -10392,6 +10395,12 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } +$DBversion = "3.19.00.039"; +if ( CheckVersion($DBversion) ) { + print "Upgrade to $DBversion done (Koha 3.20 beta)\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. -- 2.39.5