From 3922dc3a341358aed1dd05f178850c12e7ab280d Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 14 May 2017 12:35:48 +0000 Subject: [PATCH] SCHEMA UPDATE for Bug 17260 - updatedatabase.pl fails on invalid entries in ENUM and BOOLEAN columns --- Koha/Schema/Result/SearchField.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/SearchField.pm b/Koha/Schema/Result/SearchField.pm index 09a3b6f3df..57149532c6 100644 --- a/Koha/Schema/Result/SearchField.pm +++ b/Koha/Schema/Result/SearchField.pm @@ -48,7 +48,7 @@ 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 @@ -65,7 +65,7 @@ __PACKAGE__->add_columns( "type", { data_type => "enum", - extra => { list => ["string", "date", "number", "boolean", "sum"] }, + extra => { list => ["", "string", "date", "number", "boolean", "sum"] }, is_nullable => 0, }, ); @@ -114,8 +114,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-05-14 12:31:58 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2RRBW7ej/U6axKbpb2/Eog __PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); -- 2.39.5