@@ -, +, @@ --- Koha/Schema/Result/SearchField.pm | 12 ++++++++++-- t/db_dependent/Koha_Elasticsearch.t | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) --- a/Koha/Schema/Result/SearchField.pm +++ a/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"); --- a/t/db_dependent/Koha_Elasticsearch.t +++ a/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; --