Koha-clms/installer/data/mysql/atomicupdate/bug_42490.pl

24 lines
654 B
Perl
Executable File

use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_success say_info);
return {
bug_number => "42490",
description => "Add system preference LocalHoldsPriorityScope",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
INSERT IGNORE INTO systempreferences (variable, value)
VALUES (
'LocalHoldsPriorityScope',
'capture_and_queue'
)
}
);
say $out "Added new system preference 'LocalHoldsPriorityScope'";
},
};