Bugzilla – Attachment 31129 Details for
Bug 12478
Elasticsearch support for Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12478 - set up database tables for elasticsearch
Bug-12478---set-up-database-tables-for-elasticsear.patch (text/plain), 2.83 KB, created by
Robin Sheat
on 2014-08-25 03:59:40 UTC
(
hide
)
Description:
Bug 12478 - set up database tables for elasticsearch
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2014-08-25 03:59:40 UTC
Size:
2.83 KB
patch
obsolete
>From 0c2d9906cc7dd197059d28f35236cbb18be9be52 Mon Sep 17 00:00:00 2001 >From: Robin Sheat <robin@catalyst.net.nz> >Date: Mon, 25 Aug 2014 15:55:50 +1200 >Subject: [PATCH] Bug 12478 - set up database tables for elasticsearch > >This sets up the database changes needed to run ES. This isn't intended >to be ready for upstreaming, just to make testing easier. >--- > installer/data/mysql/sysprefs.sql | 2 +- > installer/data/mysql/updatedatabase.pl | 10 ++++++++++ > kohaversion.pl | 2 +- > 3 files changed, 12 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 7eb08a8..2578a70 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -345,7 +345,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'), > ('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'), > ('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'), >-('SearchEngine','Zebra','Solr|Zebra','Search Engine','Choice'), >+('SearchEngine','Zebra','Elasticsearch|Solr|Zebra','Search Engine','Choice'), > ('SearchMyLibraryFirst','0',NULL,'If ON, OPAC searches return results limited by the user\'s library by default if they are logged in','YesNo'), > ('SelfCheckHelpMessage','','70|10','Enter HTML to include under the basic Web-based Self Checkout instructions on the Help page','Textarea'), > ('SelfCheckReceiptPrompt','1','NULL','If ON, print receipt dialog pops up when self checkout is finished','YesNo'), >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index de77bf3..05a3f0d 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -8613,6 +8613,16 @@ if ( CheckVersion($DBversion) ) { > SetVersion($DBversion); > } > >+$DBversion = "3.17.00.015"; >+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { >+ my $installer = C4::Installer->new(); >+ my $full_path = C4::Context->config('intranetdir') . "/installer/data/$installer->{dbms}/elasticsearch_mapping.sql"; >+ my $error = $installer->load_sql($full_path); >+ warn $error if $error; >+ print "Upgrade to $DBversion done (Bug 12478 - set up elasticsearch tables)\n"; >+ SetVersion($DBversion); >+} >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >diff --git a/kohaversion.pl b/kohaversion.pl >index f4bd080..b5634f6 100644 >--- a/kohaversion.pl >+++ b/kohaversion.pl >@@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts : > use strict; > > sub kohaversion { >- our $VERSION = '3.17.00.014'; >+ our $VERSION = '3.17.00.015'; > # version needs to be set this way > # so that it can be picked up by Makefile.PL > # during install >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12478
:
29204
|
31128
|
31129
|
33136
|
33137
|
33138
|
33139
|
33140
|
33141
|
35654
|
40903
|
42030
|
42031
|
42032
|
42033
|
42062
|
42063
|
42064
|
42065
|
42066
|
42067
|
42068
|
42069
|
42392
|
42393
|
43127
|
43128
|
43129
|
43130
|
43131
|
43132
|
43133
|
43134
|
43140
|
43141
|
43142
|
43148
|
43345
|
43346
|
43347
|
43348
|
43349
|
43350
|
43351
|
43352
|
43373
|
47767
|
47768
|
50115
|
50159
|
50211
|
50212
|
50213
|
50214
|
50245
|
50246
|
50291
|
50292