Can only add column reservesallowed to issuingrules once
authorColin Campbell <colin.campbell@ptfs-europe.com>
Mon, 25 Jan 2010 09:26:07 +0000 (09:26 +0000)
committerColin Campbell <colin.campbell@ptfs-europe.com>
Mon, 25 Jan 2010 09:30:15 +0000 (09:30 +0000)
installer/data/mysql/updatedatabase.pl

index ef12c2c..8d65a4b 100755 (executable)
@@ -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";
 }