Bug 34597: (QA follow-up) Add missing database revision

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2024-06-05 17:18:17 +01:00
parent 34ddf71da1
commit be240afe3b
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
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." );
},
};