From a434eb54ca93e249d6d891f9f9d1b5535d3c6ca5 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 --- .../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.30.2