|
Line 0
Link Here
|
| 0 |
- |
1 |
use Modern::Perl; |
|
|
2 |
|
| 3 |
return { |
| 4 |
bug_number => "29887", |
| 5 |
description => "Add system preference IndependentBranchesLoggedInLibrary", |
| 6 |
up => sub { |
| 7 |
my ($args) = @_; |
| 8 |
my ($dbh, $out) = @$args{qw(dbh out)}; |
| 9 |
# Do you stuffs here |
| 10 |
$dbh->do(q{ |
| 11 |
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) |
| 12 |
SELECT 'IndependentBranchesLoggedInLibrary', value, NULL, 'Prevent non-superlibrarians from switching logged in locations','YesNo' |
| 13 |
FROM systempreferences WHERE variable = 'IndependentBranches' |
| 14 |
}); |
| 15 |
# Print useful stuff here |
| 16 |
say $out "Bug 29887 database update finished"; |
| 17 |
}, |
| 18 |
} |