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

(-)a/installer/data/mysql/atomicupdate/bug_10300.perl (+12 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( q{
4
        INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
5
        SELECT 'IndependentBranchesTransfers', value, NULL, 'Allow non-superlibrarians to transfer items between libraries','YesNo'
6
        FROM systempreferences WHERE variable = 'IndependentBranches'
7
    });
8
9
    # Always end with this (adjust the bug info)
10
    SetVersion( $DBversion );
11
    print "Upgrade to $DBversion done (Bug 10300 - Allow transferring of items to be have separate IndependentBranches syspref)\n";
12
}
(-)a/installer/data/mysql/atomicupdate/bug_10300.sql (-4 lines)
Lines 1-3 Link Here
1
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
2
SELECT 'IndependentBranchesTransfers', value, NULL, 'Allow non-superlibrarians to transfer items between libraries','YesNo'
3
FROM systempreferences WHERE variable = 'IndependentBranches';
4
- 

Return to bug 10300