From 3e3acbc181f5c236e0f7c363034fb47e93eb214c Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 13 Feb 2025 19:26:56 +0000 Subject: [PATCH] Bug 38615: Atomic update --- .../data/mysql/atomicupdate/bug_38615.pl | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_38615.pl diff --git a/installer/data/mysql/atomicupdate/bug_38615.pl b/installer/data/mysql/atomicupdate/bug_38615.pl new file mode 100755 index 00000000000..32f4744beac --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_38615.pl @@ -0,0 +1,22 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_success say_info); + +return { + bug_number => "38615", + description => "A single line description", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + # Do you stuffs here + $dbh->do( + q{ + INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) + VALUES ('HoldCancellationRequestSIP',0,'','Option to set holds cancelled via SIP as cancellation requests','YesNo') + } + ); + + # sysprefs + say $out "Added new system preference '38615'"; + }, +}; -- 2.39.5