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

(-)a/installer/data/mysql/atomicupdate/bug_30403.pl (-3 / +2 lines)
Lines 7-18 return { Link Here
7
        my ($args) = @_;
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
9
10
        $dbh->do(
10
        my $inserted = $dbh->do(
11
            q{
11
            q{
12
                INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
12
                INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
13
                VALUES ('UpdateNotForLoanStatusOnCheckout', '', 'NULL', 'This is a list of value pairs. When an item is checked out, if the not for loan value on the left matches the items not for loan value it will be updated to the right-hand value. E.g. ''-1: 0'' will cause an item that was set to ''Ordered'' to now be available for loan. Each pair of values should be on a separate line.', 'Free')
13
                VALUES ('UpdateNotForLoanStatusOnCheckout', '', 'NULL', 'This is a list of value pairs. When an item is checked out, if the not for loan value on the left matches the items not for loan value it will be updated to the right-hand value. E.g. ''-1: 0'' will cause an item that was set to ''Ordered'' to now be available for loan. Each pair of values should be on a separate line.', 'Free')
14
            }
14
            }
15
        );
15
        );
16
        say $out "Added new system preference 'UpdateNotForLoanStatusOnCheckout'";
16
        say $out ( $inserted == 1 ) ? "Added new system preference 'UpdateNotForLoanStatusOnCheckout'" : "Skipped - System preference exists already in DB" 
17
    },
17
    },
18
};
18
};
19
- 

Return to bug 34720