From e2abca7a663c979a1fd1e3ea4c1028b908aab71e Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 13 Apr 2016 08:57:49 +1200 Subject: [PATCH] Bug 12478: Making sure the syspref is set to Zebra by default Signed-off-by: Nick Clemens Signed-off-by: Jesse Weaver Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall --- installer/data/mysql/atomicupdate/elastic_search.perl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/installer/data/mysql/atomicupdate/elastic_search.perl b/installer/data/mysql/atomicupdate/elastic_search.perl index e8bc20e407..62e72dde95 100644 --- a/installer/data/mysql/atomicupdate/elastic_search.perl +++ b/installer/data/mysql/atomicupdate/elastic_search.perl @@ -10,6 +10,11 @@ use Koha::SearchFields; my $dbh = C4::Context->dbh; + +$dbh->do(q|INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) + VALUES('SearchEngine','Zebra','Choose format to display postal addresses','','Choice')|); + + $dbh->do(q|DROP TABLE IF EXISTS search_marc_to_field|); $dbh->do(q|DROP TABLE IF EXISTS search_marc_map|); $dbh->do(q|DROP TABLE IF EXISTS search_field|); -- 2.20.1