View | Details | Raw Unified | Return to bug 29887
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_29887-add-independentbranchesloggedinlibrary-sys-pref.pl (-1 / +18 lines)
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
}

Return to bug 29887