Koha/installer/data/mysql/db_revs/230600025.pl
Tomas Cohen Arazi 82234aba24
Bug 29822: DBRev 23.06.00.025
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-09-25 10:53:45 -03:00

22 lines
566 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "29822",
description => "Convert DefaultPatronSeachFields from csv to psv",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(
q{
UPDATE systempreferences
SET
value = REPLACE( value, ',', '|' )
WHERE
variable = 'DefaultPatronSearchFields'
}
);
say $out "Updated system preference 'DefaultPatronSearchFields";
},
};