Koha/installer/data/mysql/db_revs/240600005.pl
Martin Renvoize 87abe8de60
Bug 35639: (RM follow-up) Fix missing import
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2024-06-13 14:08:35 +01:00

18 lines
698 B
Perl
Executable file

use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
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'" );
},
};