From b2d50df33843f6e810e5324eb5b8625e2f6d71b1 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 24 Sep 2024 19:33:44 +0000 Subject: [PATCH] Bug 37967: (QA follow-up) Add bug number/description and perltidy atomicupdate Signed-off-by: Lucas Gass Signed-off-by: Martin Renvoize --- installer/data/mysql/atomicupdate/bug_37967.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_37967.pl b/installer/data/mysql/atomicupdate/bug_37967.pl index 9e08f9bcc7..e8494b948d 100755 --- a/installer/data/mysql/atomicupdate/bug_37967.pl +++ b/installer/data/mysql/atomicupdate/bug_37967.pl @@ -2,18 +2,20 @@ use Modern::Perl; use Koha::Installer::Output qw(say_warning say_failure say_success say_info); return { - bug_number => "BUG_NUMBER", - description => "A single line description", + bug_number => "37967", + description => "Add auto renewal message_transport for phone", up => sub { my ($args) = @_; my ( $dbh, $out ) = @$args{qw(dbh out)}; try { - $dbh->do(q{ + $dbh->do( + q{ INSERT IGNORE INTO message_transports (`message_attribute_id`, `message_transport_type`, `is_digest`, `letter_module`, `letter_code`) VALUES (9, 'phone', 1, 'circulation', 'AUTO_RENEWALS_DGST'), (9, 'phone', 0, 'circulation', 'AUTO_RENEWALS'); - }); + } + ); say_success( $out, "Added phone messaging transports for auto-renewals" ); } catch { say_failure( $out, "Error adding phone messaging transports for auto-renewals: $_" ); -- 2.39.5