From 63d5a928f4193e42f9ba31011f5d9be1e754b897 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 8 Jun 2022 14:14:43 +0000 Subject: [PATCH] Bug 11889: (QA follow-up) Convert to new atomicupdate style Content-Type: text/plain; charset=utf-8 The first patch contained an old .sql atomic update. --- installer/data/mysql/atomicupdate/bug_11889.pl | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_11889.pl diff --git a/installer/data/mysql/atomicupdate/bug_11889.pl b/installer/data/mysql/atomicupdate/bug_11889.pl new file mode 100755 index 0000000000..f715b7a2a2 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_11889.pl @@ -0,0 +1,13 @@ +use Modern::Perl; + +return { + bug_number => 11889, + description => "Add pref ListOwnershipUponPatronDeletion", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + $dbh->do(q{ +INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) VALUES ('ListOwnershipUponPatronDeletion', 'delete', 'delete|transfer', 'When deleting a patron who owns public lists, either delete the public lists or transfer ownership to the patron who deleted the owner', 'Choice'); + }); + }, +}; -- 2.20.1