From 57b9a718815a70c2ec9d2834a520a5724bf4a4a4 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 30 Oct 2024 06:41:28 +0000 Subject: [PATCH] Bug 35305: DBRev 24.06.00.052 Signed-off-by: Katrin Fischer --- Koha.pm | 2 +- .../{atomicupdate/bug_35305.pl => db_revs/240600052.pl} | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) rename installer/data/mysql/{atomicupdate/bug_35305.pl => db_revs/240600052.pl} (68%) diff --git a/Koha.pm b/Koha.pm index ff8928665d..35c82c66be 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.051"; +$VERSION = "24.06.00.052"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_35305.pl b/installer/data/mysql/db_revs/240600052.pl similarity index 68% rename from installer/data/mysql/atomicupdate/bug_35305.pl rename to installer/data/mysql/db_revs/240600052.pl index f5d1c64cd3..65643e2493 100755 --- a/installer/data/mysql/atomicupdate/bug_35305.pl +++ b/installer/data/mysql/db_revs/240600052.pl @@ -1,4 +1,5 @@ use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_failure say_success say_info); return { bug_number => "35305", @@ -6,10 +7,12 @@ return { up => sub { my ($args) = @_; my ( $dbh, $out ) = @$args{qw(dbh out)}; - $dbh->do(q{ + $dbh->do( + q{ INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('AuthorityXSLTDetailsDisplay','','','Enable XSL stylesheet control over authority details page display on intranet','Free') - }); - say $out "Added new system preference 'AuthorityXSLTDetailsDisplay'"; + } + ); + say_success( $out, "Added new system preference 'AuthorityXSLTDetailsDisplay'" ); }, }; -- 2.39.5