|
Lines 1-11
Link Here
|
| 1 |
use Modern::Perl; |
1 |
use Modern::Perl; |
|
|
2 |
use Koha::Installer::Output qw(say_warning say_success say_info); |
| 2 |
|
3 |
|
| 3 |
return { |
4 |
return { |
| 4 |
bug_number => "BUG_24499", |
5 |
bug_number => "24499", |
| 5 |
description => "Add new system preference EnhancedMessaging", |
6 |
description => "Add new system preference EnhancedMessaging", |
| 6 |
up => sub { |
7 |
up => sub { |
| 7 |
my ($args) = @_; |
8 |
my ($args) = @_; |
| 8 |
my ($dbh, $out) = @$args{qw(dbh out)}; |
9 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
| 9 |
$dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('EnhancedMessaging', '1', NULL, "Send/Don't send notifications through misc/cronjobs/advance_notices.pl", 'YesNo') }); |
10 |
|
| 10 |
}, |
11 |
# Do you stuffs here |
| 11 |
}; |
12 |
$dbh->do( |
|
|
13 |
q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('EnhancedMessaging', '1', NULL, "Send/Don't send notifications through misc/cronjobs/advance_notices.pl", 'YesNo') } |
| 14 |
); |
| 15 |
|
| 16 |
say_success( $out, "Added new system preference 'EnhancedMessaging'" ); |
| 17 |
}, |
| 18 |
}; |
| 12 |
- |
|
|