From 63fdf80f991651c1254282e0569bfd1ded19e59d Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 27 Aug 2021 07:56:55 +0000 Subject: [PATCH] Bug 20028: (QA follow-up) Add atomic update for new pref Setting the initial value to 0 just to be on the safe side. Signed-off-by: Marcel de Rooy --- installer/data/mysql/atomicupdate/bug_20028.pl | 15 +++++++++++++++ installer/data/mysql/mandatory/sysprefs.sql | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 installer/data/mysql/atomicupdate/bug_20028.pl diff --git a/installer/data/mysql/atomicupdate/bug_20028.pl b/installer/data/mysql/atomicupdate/bug_20028.pl new file mode 100755 index 0000000000..090bb5d888 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_20028.pl @@ -0,0 +1,15 @@ +use Modern::Perl; + +return { + bug_number => "20028", + description => "Add pref AllowGDPRPatronExport", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + $dbh->do(q{ +INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES +('AllowGDPRPatronExport','0','','If set all data for a patron can be exported from the staff interface.','YesNo') + }); + #say $out "Update is going well so far"; + }, +} diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index 154905ea40..29348fe1c4 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -25,7 +25,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('AllFinesNeedOverride','1','0','If on, staff will be asked to override every fine, even if it is below noissuescharge.','YesNo'), ('AllowAllMessageDeletion','0','','Allow any Library to delete any message','YesNo'), ('AllowFineOverride','0','0','If on, staff will be able to issue books to patrons with fines greater than noissuescharge.','YesNo'), -('AllowGDPRPatronExport','1','','If set all data for a patron can be exported from the staff interface.','YesNo'), +('AllowGDPRPatronExport','0','','If set all data for a patron can be exported from the staff interface.','YesNo'), ('AllowHoldDateInFuture','0','','If set a date field is displayed on the Hold screen of the Staff Interface, allowing the hold date to be set in the future.','YesNo'), ('AllowHoldItemTypeSelection','0','','If enabled, patrons and staff will be able to select the itemtype when placing a hold','YesNo'), ('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'), -- 2.25.1