This patch fixes several SQL syntax errors with the ALTER TABLE pragma
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do("ALTER TABLE issuingrules ADD
COLUMN `finedays` int(11) default NULL AFTER `fine`,
- COLUMN `renewalsallowed` smallint(6) default NULL,
- COLUMN `reservesallowed` smallint(6) default NULL,
+ ADD COLUMN `renewalsallowed` smallint(6) default NULL,
+ ADD COLUMN `reservesallowed` smallint(6) default NULL;
");
my $sth = $dbh->prepare("SELECT itemtype, renewalsallowed FROM itemtypes");
$sth->execute();