Bug 36396: DB changes

Add the new DB column search_field.authorised_value_category

Sponsored-by: The Research University in the Helmholtz Association (KIT)
Signed-off-by: Lukas Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-03-21 15:45:11 +01:00 committed by Katrin Fischer
parent 09734c1c11
commit a3887fe12a
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 19 additions and 0 deletions

View File

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

View File

@ -5653,6 +5653,7 @@ CREATE TABLE `search_field` (
`staff_client` tinyint(1) NOT NULL DEFAULT 1,
`opac` tinyint(1) NOT NULL DEFAULT 1,
`mandatory` tinyint(1) DEFAULT NULL COMMENT 'if marked this field is not editable or removable',
`authorised_value_category` varchar(32) DEFAULT NULL COMMENT 'link to authorised value category',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`(191))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;