Lines 12320-12328
if ( $column_has_been_used ) {
Link Here
|
12320 |
|
12320 |
|
12321 |
$DBversion = "3.23.00.050"; |
12321 |
$DBversion = "3.23.00.050"; |
12322 |
if ( CheckVersion($DBversion) ) { |
12322 |
if ( CheckVersion($DBversion) ) { |
12323 |
use Koha::SearchMarcMaps; |
|
|
12324 |
use Koha::SearchFields; |
12325 |
use Koha::SearchEngine::Elasticsearch; |
12326 |
|
12323 |
|
12327 |
$dbh->do(q|INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) |
12324 |
$dbh->do(q|INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) |
12328 |
VALUES('SearchEngine','Zebra','Choose Search Engine','','Choice')|); |
12325 |
VALUES('SearchEngine','Zebra','Choose Search Engine','','Choice')|); |
Lines 12384-12395
$dbh->do(q|
Link Here
|
12384 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |
12381 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |
12385 |
|); |
12382 |
|); |
12386 |
|
12383 |
|
12387 |
# Insert default mappings |
12384 |
print "WARNING: If you plan to use Elasticsearch you should go to 'Home › Administration › Search engine configuration' and reset the mappings\n"; |
12388 |
Koha::SearchEngine::Elasticsearch->reset_elasticsearch_mappings; |
12385 |
print "Upgrade to $DBversion done (Bug 12478 - Elasticsearch support for Koha)\n"; |
12389 |
|
|
|
12390 |
print "Upgrade to $DBversion done (Bug 12478 - Elasticsearch support for Koha)\n"; |
12391 |
SetVersion($DBversion); |
12386 |
SetVersion($DBversion); |
12392 |
} |
12387 |
} |
12393 |
|
12388 |
|
12394 |
|
12389 |
|
12395 |
$DBversion = "3.23.00.051"; |
12390 |
$DBversion = "3.23.00.051"; |
12396 |
- |
|
|