Koha/installer/data/mysql/db_revs/240600005.pl
Martin Renvoize 5dce53fdb6
Bug 35639: DBRev 24.06.00.005
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2024-06-11 11:52:24 +01:00

17 lines
620 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "35639",
description => "Add the SMSSendMaxChar system preference to limit the number of characters in a SMS message",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$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');
}
) == 1 and say_success( $out, "Added new system preference 'SMSSendMaxChar'" );
},
};