From 4c516eb81b3d6071acd17c2bf0948b968b8f8c26 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 28 Jun 2023 15:00:17 +0000 Subject: [PATCH] Bug 33716: (QA follow-up) Add atomic update file Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- .../data/mysql/atomicupdate/bug_33716.pl | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_33716.pl diff --git a/installer/data/mysql/atomicupdate/bug_33716.pl b/installer/data/mysql/atomicupdate/bug_33716.pl new file mode 100755 index 0000000000..bd7f48d40b --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_33716.pl @@ -0,0 +1,20 @@ +use Modern::Perl; + +return { + bug_number => "33716", + description => "Add new ILLModuleDisclaimerByType 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 ( + 'ILLModuleDisclaimerByType', '', '', 'YAML defining disclaimer settings for each ILL request type', + 'Textarea' + ); + } + ); + say $out "Added new system preference 'ILLModuleDisclaimerByType'"; + }, +}; -- 2.39.5