View | Details | Raw Unified | Return to bug 12478
Collapse All | Expand All

(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 348-354 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
348
('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
348
('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
349
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
349
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
350
('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'),
350
('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'),
351
('SearchEngine','Zebra','Solr|Zebra','Search Engine','Choice'),
351
('SearchEngine','Zebra','Elasticsearch|Solr|Zebra','Search Engine','Choice'),
352
('SearchMyLibraryFirst','0',NULL,'If ON, OPAC searches return results limited by the user\'s library by default if they are logged in','YesNo'),
352
('SearchMyLibraryFirst','0',NULL,'If ON, OPAC searches return results limited by the user\'s library by default if they are logged in','YesNo'),
353
('SelfCheckHelpMessage','','70|10','Enter HTML to include under the basic Web-based Self Checkout instructions on the Help page','Textarea'),
353
('SelfCheckHelpMessage','','70|10','Enter HTML to include under the basic Web-based Self Checkout instructions on the Help page','Textarea'),
354
('SelfCheckReceiptPrompt','1','NULL','If ON, print receipt dialog pops up when self checkout is finished','YesNo'),
354
('SelfCheckReceiptPrompt','1','NULL','If ON, print receipt dialog pops up when self checkout is finished','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +10 lines)
Lines 8751-8756 if ( CheckVersion($DBversion) ) { Link Here
8751
    SetVersion($DBversion);
8751
    SetVersion($DBversion);
8752
}
8752
}
8753
8753
8754
$DBversion = "XXX";
8755
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
8756
    my $installer = C4::Installer->new();
8757
    my $full_path = C4::Context->config('intranetdir') . "/installer/data/$installer->{dbms}/elasticsearch_mapping.sql";
8758
    my $error     = $installer->load_sql($full_path);
8759
    warn $error if $error;
8760
    print "Upgrade to $DBversion done (Bug 12478 - set up elasticsearch tables)\n";
8761
    SetVersion($DBversion);
8762
}
8763
8754
=head1 FUNCTIONS
8764
=head1 FUNCTIONS
8755
8765
8756
=head2 TableExists($table)
8766
=head2 TableExists($table)
8757
- 

Return to bug 12478