Koha/installer/data/mysql/db_revs/231200051.pl
Katrin Fischer 1eb3eddd2d
Bug 31097: DBRev 23.12.00.051
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-05-08 18:23:52 +02:00

18 lines
590 B
Perl
Executable file

use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
return {
bug_number => "31097",
description => "Change default 'Manual' restriction test",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(q{ UPDATE restriction_types SET display_text = "Manual restriction" WHERE display_text = "Manual"});
say_info(
$out,
"Updated patron restriction types display for MANUAL restrictions from 'Manual' to 'Manual restriction'"
);
},
};