Bug 33716: (QA follow-up) Add atomic update file

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Pedro Amorim 2023-06-28 15:00:17 +00:00 committed by Tomas Cohen Arazi
parent 53a08bcbe6
commit 4c516eb81b
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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'";
},
};