|
Line 0
Link Here
|
| 0 |
- |
1 |
use Modern::Perl; |
|
|
2 |
use Koha::Installer::Output qw(say_warning say_success say_info); |
| 3 |
|
| 4 |
return { |
| 5 |
bug_number => "35467", |
| 6 |
description => "Rename NewsLog to AdditionalContentLog", |
| 7 |
up => sub { |
| 8 |
my ($args) = @_; |
| 9 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
| 10 |
|
| 11 |
# Do you stuffs here |
| 12 |
$dbh->do(q{UPDATE systempreferences SET variable = 'AdditionalContentLog' WHERE variable = 'NewsLog'}); |
| 13 |
|
| 14 |
# Other information |
| 15 |
say_success( $out, "Updated system preference 'NewsLog' to 'AdditionalContentLog'" ); |
| 16 |
|
| 17 |
}, |
| 18 |
}; |