Koha/installer/data/mysql/db_revs/231200049.pl
Katrin Fischer 79d3020594
Bug 36396: DBRev 23.12.00.049
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-05-07 15:53:56 +02:00

21 lines
626 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "36396",
description => "Link Elasticsearch facets with authorized value categories",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
unless ( column_exists( 'search_field', 'authorised_value_category' ) ) {
$dbh->do(
q{
ALTER TABLE search_field
ADD COLUMN `authorised_value_category` varchar(32) DEFAULT NULL
AFTER mandatory
}
);
}
say $out "Added Elasticsearch facets with authorized value categories";
},
};