@@ -, +, @@ --- Koha/Schema/Result/SearchField.pm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) --- a/Koha/Schema/Result/SearchField.pm +++ a/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"]} is_nullable: 0 what type of data this holds, relevant when storing it in the search engine +=head2 facet_order + + data_type: 'tinyint' + default_value: 0 + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -65,9 +71,11 @@ __PACKAGE__->add_columns( "type", { data_type => "enum", - extra => { list => ["string", "date", "number", "boolean", "sum"] }, + extra => { list => ["", "string", "date", "number", "boolean", "sum"] }, is_nullable => 0, }, + "facet_order", + { data_type => "tinyint", default_value => 0, is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -114,8 +122,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-12 16:41:47 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4MJO9216VF37w7PlWCcBKg +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-08 14:36:00 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rxOwC5fOXD7K5xqJykNPag __PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); --