From a4b400c88ad8e6a18658042d691733bc92c26622 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 14 Nov 2024 12:46:11 +0000 Subject: [PATCH] Bug 35604: atomicupdate Sponsored-by: UKHSA - UK Health Security Agency Sponsored-by: PTFS Europe Ltd Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- installer/data/mysql/atomicupdate/bug_35604.pl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_35604.pl diff --git a/installer/data/mysql/atomicupdate/bug_35604.pl b/installer/data/mysql/atomicupdate/bug_35604.pl new file mode 100755 index 00000000000..cd347bcac85 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_35604.pl @@ -0,0 +1,16 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_success say_info); + +return { + bug_number => "35604", + description => "Add new AutoILLBackendPriority system preferences", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + $dbh->do( + q{ INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('AutoILLBackendPriority','',NULL,'Set the automatic backend selection priority','ILLBackends'); } + ); + say_success( $out, "Added new system preference 'AutoILLBackendPriority'" ); + }, +}; -- 2.47.1