From 3dc0f5728ea9fdff357356c56846636545113f91 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 8 Mar 2013 08:53:52 +0100 Subject: [PATCH] Bug 9767: Fix for updatedatabase.pl (mixed version numbers) Signed-off-by: Marcel de Rooy Signed-off-by: Jared Camins-Esakov --- installer/data/mysql/updatedatabase.pl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 405e033cec..041040ad78 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -6444,6 +6444,13 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.11.00.024"; +if ( CheckVersion($DBversion) ) { + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacItemLocation','callnum','Show the shelving location of items in the opac','callnum|ccode|location','Choice');"); + print "Upgrade to $DBversion done (Bug 5079: Add OpacItemLocation syspref)\n"; + SetVersion ($DBversion); +} + $DBversion = "3.11.00.025"; if ( CheckVersion($DBversion) ) { $dbh->do( @@ -6469,12 +6476,6 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } -$DBversion = "3.11.00.024"; -if ( CheckVersion($DBversion) ) { - $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacItemLocation','callnum','Show the shelving location of items in the opac','callnum|ccode|location','Choice');"); - print "Upgrade to $DBversion done (Bug 5079: Add OpacItemLocation syspref)\n"; - SetVersion ($DBversion); -} =head1 FUNCTIONS -- 2.39.5