From ec3c8e95e012e65cb2444c8ed62e48af34b3788c Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 22 May 2013 11:57:33 -0700 Subject: [PATCH] prefer CheckVersion in updatedatabase.pl Fixes an inconsistency with a couple recent DBrev patches. Signed-off-by: Galen Charlton --- installer/data/mysql/updatedatabase.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index b41e88bf7c..13de2292f2 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -6840,13 +6840,13 @@ if ( CheckVersion($DBversion) ) { } $DBversion = '3.13.00.000'; -if (C4::Context->preference("Version") < TransformToNum($DBversion)) { +if ( CheckVersion($DBversion) ) { print "Upgrade to $DBversion done (start the journey to Koha Pi)\n"; SetVersion ($DBversion); } $DBversion = "3.13.00.001"; -if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { +if ( CheckVersion($DBversion) ) { $dbh->do("INSERT INTO `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('UseCourseReserves', '0', NULL, 'Enable the course reserves feature.', 'YesNo')"); $dbh->do("INSERT INTO userflags (bit,flag,flagdesc,defaulton) VALUES ('18','coursereserves','Course Reserves','0')"); $dbh->do(" -- 2.39.5