Bug 29145: DBRev 23.06.00.027
[koha.git] / installer / data / mysql / db_revs / 230600027.pl
1 use Modern::Perl;
2
3 return {
4     bug_number  => "29145",
5     description => "Change type of AutoRemoveOverduesRestrictions system preference",
6     up          => sub {
7         my ($args) = @_;
8         my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10         # Do you stuffs here
11         $dbh->do(
12             q{UPDATE `systempreferences` SET `type` = 'Choice', `options` = 'no|when_no_overdue|when_no_overdue_causing_debarment', `explanation` = 'Defines if and on what conditions OVERDUES debarments should automatically be lifted when overdue items are returned by the patron.', `value` = CASE `value` WHEN '1' THEN 'when_no_overdue' WHEN '0' THEN 'no' ELSE `value` END WHERE variable = 'AutoRemoveOverduesRestrictions'}
13         );
14         say $out "Type of AutoRemoveOverduesRestrictions system preference has been changed";
15     },
16     }