Bug 36396: DBRev 23.12.00.049

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Katrin Fischer 2024-05-07 13:16:07 +00:00
parent 98a1f17501
commit 79d3020594
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 8 additions and 5 deletions

View File

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "23.12.00.048";
$VERSION = "23.12.00.049";
sub version {
return $VERSION;

View File

@ -2,17 +2,20 @@ use Modern::Perl;
return {
bug_number => "36396",
description => "Link elastic facets with authorized value categories",
description => "Link Elasticsearch facets with authorized value categories",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
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";
},
};