From f1af78fc63d79046c4d735724fb954d419c778c9 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 21 Apr 2022 12:41:08 +0000 Subject: [PATCH] Bug 30572: DBIx schema change for SearchMarcToField No test plan. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Fridolin Somers --- Koha/Schema/Result/SearchMarcToField.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Koha/Schema/Result/SearchMarcToField.pm b/Koha/Schema/Result/SearchMarcToField.pm index 527110140d..64e9db770b 100644 --- a/Koha/Schema/Result/SearchMarcToField.pm +++ b/Koha/Schema/Result/SearchMarcToField.pm @@ -60,9 +60,10 @@ true if this field can be used to generate suggestions for browse =head2 sort data_type: 'tinyint' - is_nullable: 1 + default_value: 1 + is_nullable: 0 -true/false creates special sort handling, null doesn't +Sort defaults to 1 (Yes) and creates sort fields in the index, 0 (no) will prevent this =cut @@ -78,7 +79,7 @@ __PACKAGE__->add_columns( "suggestible", { data_type => "tinyint", default_value => 0, is_nullable => 1 }, "sort", - { data_type => "tinyint", is_nullable => 1 }, + { data_type => "tinyint", default_value => 1, is_nullable => 0 }, ); =head1 PRIMARY KEY @@ -128,8 +129,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-02 12:47:22 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9mqZ/zrii+Fv+k+eQNHYUw +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-04-21 12:39:23 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F/uoQ4AbA16vTZJAGm3WuQ __PACKAGE__->add_columns( '+facet' => { is_boolean => 1 }, -- 2.39.5