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:
parent
09734c1c11
commit
a3887fe12a
|
|
@ -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
|
||||
}
|
||||
);
|
||||
},
|
||||
};
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue