From 4f3d78c8e3760ef8012b8105a46476142d890fad Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 20 Aug 2024 14:27:54 +0000 Subject: [PATCH] Bug 35044: (QA follow-up): Add color to atomic update Signed-off-by: Katrin Fischer --- installer/data/mysql/atomicupdate/bug_35044.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_35044.pl b/installer/data/mysql/atomicupdate/bug_35044.pl index 2e5d94c272..f64e70014d 100755 --- a/installer/data/mysql/atomicupdate/bug_35044.pl +++ b/installer/data/mysql/atomicupdate/bug_35044.pl @@ -1,4 +1,5 @@ use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_failure say_success say_info); return { bug_number => "35044", @@ -14,7 +15,7 @@ return { 'does the field allow more than one option?' AFTER searchable } ); - say $out "Added repeatable column to additional_fields table"; + say_success( $out, "Added repeatable column to additional_fields table" ); } if ( unique_key_exists ('additional_field_values', 'field_record') ) { @@ -39,12 +40,12 @@ return { `additional_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE } ); - say $out "Removed UNIQUE KEY `field_record` (`field_id`,`record_id`) from the additional_field_values table"; + say_success( $out, "Removed UNIQUE KEY `field_record` (`field_id`,`record_id`) from the additional_field_values table" ); } my $number_of_entries = $dbh->do(q{DELETE FROM additional_field_values WHERE value = ''}); if ( defined $number_of_entries && $number_of_entries > 0 ) { - say $out "Removed $number_of_entries redundant additional_field_values entries with empty value"; + say_info( $out, "Removed $number_of_entries redundant additional_field_values entries with empty value" ); } }, }; -- 2.39.5