From bbb1fa7016623186d893de19ded5316db4301b58 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 28 Jun 2022 10:08:17 -1000 Subject: [PATCH] Bug 31061: Change type of suppress in Elasticsearch mappings --- admin/searchengine/elasticsearch/mappings.yaml | 2 +- installer/data/mysql/atomicupdate/bug_31061.pl | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 installer/data/mysql/atomicupdate/bug_31061.pl diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 28429878f9..8123f173a8 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -3018,7 +3018,7 @@ biblios: marc_type: unimarc sort: ~ suggestible: '' - type: boolean + type: '' ta: label: ta mappings: diff --git a/installer/data/mysql/atomicupdate/bug_31061.pl b/installer/data/mysql/atomicupdate/bug_31061.pl new file mode 100755 index 0000000000..1fcfa69afa --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_31061.pl @@ -0,0 +1,13 @@ +use Modern::Perl; + +return { + bug_number => "31061", + description => "Remove suppress search field boolean type", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + $dbh->do(q{ + UPDATE `search_field` SET type = '' WHERE name = 'suppress' AND type = 'boolean' + }); + }, +}; -- 2.35.3