Bug 35467: atomicupdate to change NewsLog to AdditionalContentLog

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 420add2908)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Andrew Fuerste Henry 2025-08-05 13:39:05 +00:00 committed by Paul Derscheid
parent 0d5a1e2541
commit 6e3fba0778
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_success say_info);
return {
bug_number => "35467",
description => "Rename NewsLog to AdditionalContentLog",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(q{UPDATE systempreferences SET variable = 'AdditionalContentLog' WHERE variable = 'NewsLog'});
# Other information
say_success( $out, "Updated system preference 'NewsLog' to 'AdditionalContentLog'" );
},
};