Bug 15565: (QA follow-up) Add atomic update

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Nick Clemens 2024-05-01 15:29:34 +00:00 committed by Katrin Fischer
parent 1776a52ee6
commit 2d1fc5d9df
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -0,0 +1,19 @@
use Modern::Perl;
return {
bug_number => "15565",
description => "Add DisplayMultiItemHolds system preference",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('DisplayMultiItemHolds','0','','Display the ability to place holds on different items at the same time in staff interface and OPAC','YesNo')
}
);
say $out "Added new system preference 'DisplayMultiItemHolds'";
}
};