From 233ead036f64c2b4412a337a7517740afae4b66f Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 8 Oct 2024 16:42:15 +0000 Subject: [PATCH] Bug 23295: (QA follow-up) Fix up qa script issues Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer --- .../atomicupdate/bug_23295-add_system_restriction_types.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 installer/data/mysql/atomicupdate/bug_23295-add_system_restriction_types.pl diff --git a/installer/data/mysql/atomicupdate/bug_23295-add_system_restriction_types.pl b/installer/data/mysql/atomicupdate/bug_23295-add_system_restriction_types.pl old mode 100644 new mode 100755 index 617b402eb1..fe27c24523 --- a/installer/data/mysql/atomicupdate/bug_23295-add_system_restriction_types.pl +++ b/installer/data/mysql/atomicupdate/bug_23295-add_system_restriction_types.pl @@ -8,10 +8,11 @@ return { my ($args) = @_; my ( $dbh, $out ) = @$args{qw(dbh out)}; try { - $dbh->do(q{INSERT IGNORE INTO restriction_types (code, display_text, is_system, is_default) VALUES ('NOTICE_FAILURE_SUSPENSION', 'Notice failure suspension', 1, 0)}); + $dbh->do( + q{INSERT IGNORE INTO restriction_types (code, display_text, is_system, is_default) VALUES ('NOTICE_FAILURE_SUSPENSION', 'Notice failure suspension', 1, 0)} + ); say_success( $out, "Added a new system restriction_types 'NOTICE_FAILURE_SUSPENSION'" ); - } - catch { + } catch { say_failure( $out, "Database modification failed with errors: $_" ); }; }, -- 2.39.5