Line 0
Link Here
|
|
|
1 |
use Modern::Perl; |
2 |
|
3 |
return { |
4 |
bug_number => "35169", |
5 |
description => "Add new system preferences for longoverdue.pl borrowers categories", |
6 |
up => sub { |
7 |
my ($args) = @_; |
8 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
9 |
|
10 |
# Do you stuffs here |
11 |
$dbh->do( |
12 |
q{ |
13 |
INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES |
14 |
('DefaultLongOverdueBorrowerCategories', '', NULL, NULL, NULL), |
15 |
('DefaultLongOverdueSkipBorrowerCategories', '', NULL, NULL, NULL); |
16 |
} |
17 |
); |
18 |
|
19 |
# sysprefs |
20 |
say $out "Added new system preference 'DefaultLongOverdueBorrowerCategories'"; |
21 |
say $out "Added new system preference 'DefaultLongOverdueSkipBorrowerCategories'"; |
22 |
}, |
23 |
}; |