From 8f99a5d0c72582bdb9d6e1168c29fdb8ff884234 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 11 Jun 2024 11:48:22 +0100 Subject: [PATCH] Bug 35639: (RM follow-up) Modernise DB Update --- .../bug_35639-add_sms_characters_limitation.pl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_35639-add_sms_characters_limitation.pl b/installer/data/mysql/atomicupdate/bug_35639-add_sms_characters_limitation.pl index 7c646bad07..0f0bbc543e 100755 --- a/installer/data/mysql/atomicupdate/bug_35639-add_sms_characters_limitation.pl +++ b/installer/data/mysql/atomicupdate/bug_35639-add_sms_characters_limitation.pl @@ -7,13 +7,11 @@ return { my ($args) = @_; my ( $dbh, $out ) = @$args{qw(dbh out)}; - # Do you stuffs here - $dbh->do(q{ + $dbh->do( + q{ INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('SMSSendMaxChar','','NULL','Add a limit for the number of characters in SMS messages','Integer'); - }); - - # sysprefs - say $out "Added new system preference 'SMSSendMaxChar'"; + } + ) == 1 and say_success( $out, "Added new system preference 'SMSSendMaxChar'" ); }, }; -- 2.39.5