From b674fa289aa69076442fd6f1332b3f2403234290 Mon Sep 17 00:00:00 2001 From: David Gustafsson Date: Wed, 23 May 2018 15:57:11 +0200 Subject: [PATCH] Bug 18316: Update Koha/Schema/Result/SearchField.pm https://bugs.koha-community.org/show_bug.cgi?id=18316 --- Koha/Schema/Result/SearchField.pm | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/SearchField.pm b/Koha/Schema/Result/SearchField.pm index ee32f42cf2..9eaa4e4799 100644 --- a/Koha/Schema/Result/SearchField.pm +++ b/Koha/Schema/Result/SearchField.pm @@ -48,11 +48,17 @@ the human readable name of the field, for display =head2 type data_type: 'enum' - extra: {list => ["","string","date","number","boolean","sum"]} + extra: {list => ["","string","date","number","boolean","sum","isbn","stdno"]} is_nullable: 0 what type of data this holds, relevant when storing it in the search engine +=head2 weight + + data_type: 'decimal' + is_nullable: 1 + size: [5,2] + =cut __PACKAGE__->add_columns( @@ -65,9 +71,13 @@ __PACKAGE__->add_columns( "type", { data_type => "enum", - extra => { list => ["", "string", "date", "number", "boolean", "sum"] }, + extra => { + list => ["", "string", "date", "number", "boolean", "sum", "isbn", "stdno"], + }, is_nullable => 0, }, + "weight", + { data_type => "decimal", is_nullable => 1, size => [5, 2] }, ); =head1 PRIMARY KEY @@ -114,8 +124,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-23 13:30:43 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1IenQWmCO16tJ/nIFTFYug +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-05-23 13:34:49 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wB00F2omQ2QadnIxg8keIQ __PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); -- 2.11.0