From 1021635f1e22d59ba2c2dc157844dff73432b153 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 8 Mar 2017 15:25:42 -0300 Subject: [PATCH] Bug 18235: DBIx::Class schema changes --- Koha/Schema/Result/SearchField.pm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/SearchField.pm b/Koha/Schema/Result/SearchField.pm index 09a3b6f..43f49a7 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"]} 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"); -- 2.1.4