From e3d43aea1f6d57d704a53e97d536b01723e1120d Mon Sep 17 00:00:00 2001 From: Jake Deery Date: Mon, 7 Oct 2024 08:32:27 +0000 Subject: [PATCH] Bug 30955: (follow-up) Remove database update --- .../atomicupdate/bug_30955-add-new-notice.pl | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 installer/data/mysql/atomicupdate/bug_30955-add-new-notice.pl diff --git a/installer/data/mysql/atomicupdate/bug_30955-add-new-notice.pl b/installer/data/mysql/atomicupdate/bug_30955-add-new-notice.pl deleted file mode 100755 index b4a6971236..0000000000 --- a/installer/data/mysql/atomicupdate/bug_30955-add-new-notice.pl +++ /dev/null @@ -1,15 +0,0 @@ -use Modern::Perl; - -return { - bug_number => "30955", - description => "Send a notice to new owner when transferring shared list", - up => sub { - my ($args) = @_; - my ( $dbh, $out ) = @$args{qw(dbh out)}; - - $dbh->do( - q{ INSERT IGNORE INTO letter (module, code, name, is_html, title, content, message_transport_type) VALUES ('lists', 'TRANSFER_OWNERSHIP', 'Transfer ownership', 1, 'A list has been transferred to you', "Dear [%- INCLUDE 'patron-title.inc' patron => new_owner -%],
\r\n
\r\nA public list, titled [% shelf.shelfname | html %], has been transferred to you[% IF ( old_owner ) %] by [%- INCLUDE 'patron-title.inc' patron => old_owner%][% IF ( old_owner.email ) %] ([% old_owner.email | html %])[% END %][% END %].
\r\n
\r\nThank you
\r\n
\r\n", 'email') } - ); - say $out "Added notice TRANSFER_OWNERSHIP"; - }, -}; -- 2.43.0