Bug 31097: Update restriction type display text
[koha.git] / installer / data / mysql / atomicupdate / bug_31097.pl
1 use Modern::Perl;
2 use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4 return {
5     bug_number  => "31097",
6     description => "Change default 'Manual' restriction test",
7     up          => sub {
8         my ($args) = @_;
9         my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11         $dbh->do(q{ UPDATE restriction_types SET display_text = "Manual restriction" WHERE display_text = "Manual"});
12
13         say_info(
14             $out,
15             "Updated patron restriction types display for MANUAL restrictions from 'Manual' to 'Manual restriction'"
16         );
17     },
18 };