Fix for bug in updatedatabase (extra comma) (fixed by Chris Nighswonger)

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Chris Cormack 2008-01-27 13:17:30 -06:00 committed by Joshua Ferraro
parent e6859a3f81
commit c6086ad8bc

View file

@ -962,17 +962,15 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$DBversion = "3.00.00.049";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do("ALTER TABLE `z3950servers`
ADD `encoding` text default NULL,
");
print "Upgrade to $DBversion done ( Added encoding field to z3950servers table )\n";
$dbh->do("ALTER TABLE `z3950servers` ADD `encoding` text default NULL ");
print "Upgrade to $DBversion done ( Added encoding field to z3950servers table )\n";
SetVersion ($DBversion);
}
$DBversion = "3.00.00.050";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacHighlightedWords','0','If Set, query matched terms are highlighted in OPAC',NULL,'YesNo');");
print "Upgrade to $DBversion done ( Added OpacHighlightedWords syspref )\n";
print "Upgrade to $DBversion done ( Added OpacHighlightedWords syspref )\n";
SetVersion ($DBversion);
}