From f3230a18921fabe16d84a9ad537b99e98888515c Mon Sep 17 00:00:00 2001 From: Andrew Fuerste Henry Date: Tue, 5 Aug 2025 13:39:05 +0000 Subject: [PATCH] Bug 35467: atomicupdate to change NewsLog to AdditionalContentLog Signed-off-by: Owen Leonard --- .../bug_35467_AdditionalContentLog.pl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_35467_AdditionalContentLog.pl diff --git a/installer/data/mysql/atomicupdate/bug_35467_AdditionalContentLog.pl b/installer/data/mysql/atomicupdate/bug_35467_AdditionalContentLog.pl new file mode 100644 index 00000000000..2e033bbfc8f --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_35467_AdditionalContentLog.pl @@ -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'" ); + + }, +}; -- 2.39.5