From 2d1fc5d9df1c97972778d55cf77249c2d21bf33e Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 1 May 2024 15:29:34 +0000 Subject: [PATCH] Bug 15565: (QA follow-up) Add atomic update Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- .../data/mysql/atomicupdate/bug_15565.pl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_15565.pl diff --git a/installer/data/mysql/atomicupdate/bug_15565.pl b/installer/data/mysql/atomicupdate/bug_15565.pl new file mode 100755 index 0000000000..617a3d3341 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_15565.pl @@ -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'"; + } +}; -- 2.39.5