From fb10394d99d36c7b58bf184d636fc878f1fe5baa Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Sun, 10 Apr 2011 19:41:39 +1200 Subject: [PATCH] Fixing updatedatabase --- installer/data/mysql/updatedatabase.pl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index bac3a64f73..b20ab894af 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4233,15 +4233,6 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { print "Upgrade to $DBversion done (adding freedeliveryplace to basketgroups)\n"; } -$DBversion = "3.03.00.045"; -if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { - $dbh->do(" - INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); - "); - print "Upgrade to $DBversion done (Adding OpacHiddenItems syspref)\n"; - SetVersion($DBversion); -} - $DBversion = '3.03.00.045'; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { #Remove obsolete columns from aqbooksellers if needed @@ -4293,6 +4284,15 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.03.00.XXX"; +if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { + $dbh->do(" + INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); + "); + print "Upgrade to $DBversion done (Adding OpacHiddenItems syspref)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS =head2 DropAllForeignKeys($table) -- 2.39.5