From 3548a8815753a00dad588c31fb5b9a1f264b6331 Mon Sep 17 00:00:00 2001 From: Nicolas Hunstein Date: Fri, 10 Jan 2025 14:44:31 +0000 Subject: [PATCH] Bug 38794: (follow-up) Add database update Signed-off-by: David Nind --- .../data/mysql/atomicupdate/bug_38794.pl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_38794.pl diff --git a/installer/data/mysql/atomicupdate/bug_38794.pl b/installer/data/mysql/atomicupdate/bug_38794.pl new file mode 100755 index 0000000000..4b027659eb --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_38794.pl @@ -0,0 +1,19 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_success say_info); + +return { + bug_number => "38794", + description => "Update description of authorized value AggregatedFullText", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + # Do you stuffs here + $dbh->do( + q{update authorised_values set lib = "Aggregated full text" where category = "ERM_PACKAGE_CONTENT_TYPE" and authorised_value = "AggregatedFullText" and lib = "Aggregated full"} + ); + + say_success( $out, "Updated description of authorized value AggregatedFullText" ); + + }, +}; -- 2.39.5