Bug 29073: Use 0 and 1 as values for DefaultHoldExpirationdate
[koha.git] / installer / data / mysql / atomicupdate / bug_29073.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "29073",
5     description => "Make DefaultHoldExpirationdate use 1/0 values",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         # Do you stuffs here
10         $dbh->do(q{
11             UPDATE systempreferences SET value = IF(value = 'yes',1,0)
12             WHERE variable = 'DefaultHoldExpirationdate';
13         });
14         # Print useful stuff here
15         say $out "DefaultHoldExpirationdate values updated";
16     },
17 }