Line 0
Link Here
|
0 |
- |
1 |
use Modern::Perl; |
|
|
2 |
use Koha::Installer::Output qw(say_warning say_success say_info); |
3 |
|
4 |
return { |
5 |
bug_number => "39452", |
6 |
description => "Add CardnumberLog Preference", |
7 |
up => sub { |
8 |
my ($args) = @_; |
9 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
10 |
|
11 |
# Do you stuffs here |
12 |
$dbh->do( |
13 |
q{ |
14 |
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES |
15 |
('CardnumberLog','1',NULL,'If ON, log edit actions on patron cardnumbers','YesNo') |
16 |
} |
17 |
); |
18 |
|
19 |
say $out "Added new system preference 'CardnumberLog'"; |
20 |
}, |
21 |
}; |