Bug 35639: (RM follow-up) Modernise DB Update

This commit is contained in:
Martin Renvoize 2024-06-11 11:48:22 +01:00
parent bde8387b32
commit 8f99a5d0c7
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -7,13 +7,11 @@ return {
my ($args) = @_; my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)}; my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here $dbh->do(
$dbh->do(q{ q{
INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
VALUES ('SMSSendMaxChar','','NULL','Add a limit for the number of characters in SMS messages','Integer'); VALUES ('SMSSendMaxChar','','NULL','Add a limit for the number of characters in SMS messages','Integer');
}); }
) == 1 and say_success( $out, "Added new system preference 'SMSSendMaxChar'" );
# sysprefs
say $out "Added new system preference 'SMSSendMaxChar'";
}, },
}; };