From 49ecc5c797cfee7f316dbae01159d16f56a66c6d Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 2 Jul 2024 14:32:01 +0000 Subject: [PATCH] Bug 30873: DBRev 24.06.00.012 Signed-off-by: Katrin Fischer --- Koha.pm | 2 +- .../bug_30873.pl => db_revs/240600012.pl} | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) rename installer/data/mysql/{atomicupdate/bug_30873.pl => db_revs/240600012.pl} (56%) diff --git a/Koha.pm b/Koha.pm index e778013f5a..100fa83adb 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "24.06.00.011"; +$VERSION = "24.06.00.012"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_30873.pl b/installer/data/mysql/db_revs/240600012.pl similarity index 56% rename from installer/data/mysql/atomicupdate/bug_30873.pl rename to installer/data/mysql/db_revs/240600012.pl index 4e20eec083..baced2cb5a 100755 --- a/installer/data/mysql/atomicupdate/bug_30873.pl +++ b/installer/data/mysql/db_revs/240600012.pl @@ -1,12 +1,12 @@ use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_failure say_success say_info); return { bug_number => "26205", - description => - "Add new system preference OPACShowLibraries to control whether the libraries link appears in the OPAC", - up => sub { + description => "Add new system preference OPACShowLibraries", + up => sub { my ($args) = @_; - my $dbh = $args->{dbh}; + my ( $dbh, $out ) = @$args{qw(dbh out)}; $dbh->do( q{ @@ -14,5 +14,6 @@ return { VALUES ('OPACShowLibraries', '1', 'If enabled, a "Libraries" link appears in the OPAC pointing to a page with library information', '', 'YesNo') } ); + say_success( $out, "Added new system preference 'OPACShowLibraries'" ); }, - } +}; -- 2.39.5