Bug 11196: Add SearchEngine syspref in the DB if missing

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Jonathan Druart 2013-11-13 12:13:27 +01:00 committed by Galen Charlton
parent 5fb7c2aac8
commit bb8098cb4b
1 changed files with 8 additions and 0 deletions

View File

@ -7743,6 +7743,14 @@ if(CheckVersion($DBversion)) {
SetVersion($DBversion);
}
$DBversion = "3.15.00.XXX";
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$dbh->do("INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES('SearchEngine','Zebra','Solr|Zebra','Search Engine','Choice')");
print "Upgrade to $DBversion done (Bug 11196: Add system preference SearchEngine if missing )\n";
SetVersion($DBversion);
}
=head1 FUNCTIONS
=head2 TableExists($table)