From 411aae1a87c7b83c93104deb00061d1a04fbb265 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Mon, 25 Jan 2010 09:26:07 +0000 Subject: [PATCH] Can only add column reservesallowed to issuingrules once --- installer/data/mysql/updatedatabase.pl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index ef12c2c0b7..8d65a4b136 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -2748,11 +2748,8 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $DBversion = "3.01.00.068"; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { - $dbh->do("ALTER TABLE issuingrules ADD - COLUMN `finedays` int(11) default NULL AFTER `fine`, - ADD COLUMN `reservesallowed` smallint(6) default NULL; - "); - print "Upgrade done (Adding finedays and reservesallowed fields in issuingrules table)\n"; + $dbh->do("ALTER TABLE issuingrules ADD COLUMN `finedays` int(11) default NULL AFTER `fine` "); + print "Upgrade done (Adding finedays in issuingrules table)\n"; } -- 2.39.5