From 5f81e531085fdd767225e54bb98f9a3054754ed5 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 13 Jun 2024 14:07:17 +0100 Subject: [PATCH] Bug 35597: (RM follow-up) Modernise DB Update Signed-off-by: Martin Renvoize --- installer/data/mysql/db_revs/240600006.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/db_revs/240600006.pl b/installer/data/mysql/db_revs/240600006.pl index 3101b2fcc8..b1a1d48125 100755 --- a/installer/data/mysql/db_revs/240600006.pl +++ b/installer/data/mysql/db_revs/240600006.pl @@ -1,4 +1,5 @@ use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_failure say_success say_info); return { bug_number => "35597", @@ -13,7 +14,6 @@ return { INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('SuggestionsLog', '0', 'If enabled, log purchase suggestion changes', '' , 'YesNo') } - ); - say $out "Added new system preference 'SuggestionsLog'"; + ) == 1 and say_success( $out, "Added new system preference 'SuggestionsLog'" ); }, }; -- 2.39.5