Koha/installer/data/mysql/db_revs/211200004.pl
Fridolin Somers 3eb7480e0c Bug 26296: DBrev 21.12.00.004
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-01-09 21:04:17 -10:00

15 lines
421 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "26296",
description => "Replace comma with pipe in OPACSuggestion field preferences",
up => sub {
my ($args) = @_;
my $dbh = $args->{dbh};
$dbh->do(q{
UPDATE systempreferences SET value = REPLACE(value, ',', '|')
WHERE variable IN ('OPACSuggestionMandatoryFields','OPACSuggestionUnwantedFields')
});
},
}