Koha/installer/data/mysql/db_revs/240600003.pl
Martin Renvoize de5bf6fa4c
Bug 34597: DBRev 24.06.00.003
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2024-06-11 10:43:58 +01:00

16 lines
595 B
Perl
Executable file

use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
return {
bug_number => "34597",
description => "Update BlockExpiredPatronOpacActions to include ill_request",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
"UPDATE systempreferences SET options='hold,renew,ill_request' WHERE variable='BlockExpiredPatronOpacActions'"
) == 1
and say_success( $out, "BlockExpiredPatronOpacActions system updated to include ill_request." );
},
};