Lines 1-16
Link Here
|
1 |
use Modern::Perl; |
1 |
use Modern::Perl; |
2 |
|
2 |
|
3 |
return { |
3 |
return { |
4 |
bug_number => "31846", |
4 |
bug_number => "31846", |
5 |
description => "Add SerialsSearchResultsLimit syspref", |
5 |
description => "Add SerialsSearchResultsLimit syspref", |
6 |
up => sub { |
6 |
up => sub { |
7 |
my ($args) = @_; |
7 |
my ($args) = @_; |
8 |
my ($dbh, $out) = @$args{qw(dbh out)}; |
8 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
|
|
9 |
|
9 |
# Do you stuffs here |
10 |
# Do you stuffs here |
10 |
$dbh->do(q{ |
11 |
$dbh->do( |
|
|
12 |
q{ |
11 |
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) |
13 |
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) |
12 |
VALUES ('SerialsSearchResultsLimit', NULL, NULL, 'Serials search results limit', 'integer') |
14 |
VALUES ('SerialsSearchResultsLimit', NULL, NULL, 'Serials search results limit', 'integer') |
13 |
}); |
15 |
} |
|
|
16 |
); |
17 |
|
14 |
# Print useful stuff here |
18 |
# Print useful stuff here |
15 |
say $out "SerialsSearchResultsLimit syspref added"; |
19 |
say $out "SerialsSearchResultsLimit syspref added"; |
16 |
}, |
20 |
}, |
17 |
- |
|
|