From 98cfbb90c81ede75dd0662b1cdaaed14276a02e4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sat, 16 Feb 2019 16:47:44 -0300 Subject: [PATCH] Bug 18235: DBIx schema changes Fresh changes for SearchField, facet_order. Signed-off-by: Nicolas Legrand --- Koha/Schema/Result/SearchField.pm | 12 ++++++++++-- t/db_dependent/Koha_Elasticsearch.t | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/SearchField.pm b/Koha/Schema/Result/SearchField.pm index 0f7d943164..600b3212cb 100644 --- a/Koha/Schema/Result/SearchField.pm +++ b/Koha/Schema/Result/SearchField.pm @@ -59,6 +59,12 @@ what type of data this holds, relevant when storing it in the search engine is_nullable: 1 size: [5,2] +=head2 facet_order + + data_type: 'tinyint' + default_value: 0 + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -78,6 +84,8 @@ __PACKAGE__->add_columns( }, "weight", { data_type => "decimal", is_nullable => 1, size => [5, 2] }, + "facet_order", + { data_type => "tinyint", default_value => 0, is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -124,8 +132,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-11-07 22:22:22 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4Q+IXwF0hViF8+kpR96eLA +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-02-16 16:47:02 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VuAoOvILkO9xf7U4NVgZQA __PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); diff --git a/t/db_dependent/Koha_Elasticsearch.t b/t/db_dependent/Koha_Elasticsearch.t index 419ad722d6..6a34eb0d73 100644 --- a/t/db_dependent/Koha_Elasticsearch.t +++ b/t/db_dependent/Koha_Elasticsearch.t @@ -22,6 +22,7 @@ use t::lib::Mocks; use t::lib::TestBuilder; use MARC::Record; +use Koha::SearchEngine::Elasticsearch; use Koha::SearchFields; my $schema = Koha::Database->schema; -- 2.11.0