diff --git a/installer/data/mysql/atomicupdate/bug_30403.pl b/installer/data/mysql/atomicupdate/bug_30403.pl new file mode 100755 index 0000000000..4e91ec1de7 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_30403.pl @@ -0,0 +1,18 @@ +use Modern::Perl; + +return { + bug_number => "34720", + description => "Add system preference UpdateNotForLoanStatusOnCheckout", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + $dbh->do( + q{ + INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type ) + 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') + } + ); + say $out "Added new system preference 'UpdateNotForLoanStatusOnCheckout'"; + }, +}; diff --git a/installer/data/mysql/db_revs/221200018.pl b/installer/data/mysql/db_revs/221200018.pl index e155df848b..035aaa854f 100755 --- a/installer/data/mysql/db_revs/221200018.pl +++ b/installer/data/mysql/db_revs/221200018.pl @@ -2,11 +2,11 @@ use Modern::Perl; return { bug_number => "30403", - description => "Add system preference UpdateNotForLoanStatusOnCheckin", + description => "Add system preference UpdateNotForLoanStatusOnCheckout", up => sub { my ($args) = @_; my ($dbh, $out) = @$args{qw(dbh out)}; # Do you stuffs here - $dbh->do(q{INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type ) VALUES ('UpdateNotForLoanStatusOnCheckin', '', 'NULL', 'This is a list of value pairs. When an item is checked in, 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')}); + $dbh->do(q{INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type ) 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')}); }, };