From c3d35e2099fa41ddb9bfe3b55f994af3ef65e0e3 Mon Sep 17 00:00:00 2001 From: Thibaud Guillot Date: Thu, 2 Jan 2025 15:26:04 +0000 Subject: [PATCH] Bug 24499: (QA follow-up) fix atomic file --- ...bug_24499-add_EnhancedMessaging_syspref.pl | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_24499-add_EnhancedMessaging_syspref.pl b/installer/data/mysql/atomicupdate/bug_24499-add_EnhancedMessaging_syspref.pl index d7fe4567c7..a0821da63e 100755 --- a/installer/data/mysql/atomicupdate/bug_24499-add_EnhancedMessaging_syspref.pl +++ b/installer/data/mysql/atomicupdate/bug_24499-add_EnhancedMessaging_syspref.pl @@ -1,11 +1,18 @@ use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_success say_info); return { - bug_number => "BUG_24499", - description => "Add new system preference EnhancedMessaging", - up => sub { - my ($args) = @_; - my ($dbh, $out) = @$args{qw(dbh out)}; - $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('EnhancedMessaging', '1', NULL, "Send/Don't send notifications through misc/cronjobs/advance_notices.pl", 'YesNo') }); - }, - }; + bug_number => "24499", + description => "Add new system preference EnhancedMessaging", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + # Do you stuffs here + $dbh->do( + q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('EnhancedMessaging', '1', NULL, "Send/Don't send notifications through misc/cronjobs/advance_notices.pl", 'YesNo') } + ); + + say_success( $out, "Added new system preference 'EnhancedMessaging'" ); + }, +}; \ No newline at end of file -- 2.25.1