From 2013ea70ec603989e4765950e5ac00ba884b60c8 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 27 Jun 2024 10:10:58 +0000 Subject: [PATCH] Bug 34481: DBRev 24.06.00.010 Signed-off-by: Katrin Fischer --- Koha.pm | 2 +- .../{atomicupdate/bug_34481.pl => db_revs/240600010.pl} | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) rename installer/data/mysql/{atomicupdate/bug_34481.pl => db_revs/240600010.pl} (67%) diff --git a/Koha.pm b/Koha.pm index 768f212a3a..49fb0af546 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.009"; +$VERSION = "24.06.00.010"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_34481.pl b/installer/data/mysql/db_revs/240600010.pl similarity index 67% rename from installer/data/mysql/atomicupdate/bug_34481.pl rename to installer/data/mysql/db_revs/240600010.pl index e7a4f01038..0bfab138b4 100755 --- a/installer/data/mysql/atomicupdate/bug_34481.pl +++ b/installer/data/mysql/db_revs/240600010.pl @@ -1,4 +1,5 @@ use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_failure say_success say_info); return { bug_number => "34481", @@ -7,11 +8,13 @@ return { 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 ('IncludeSeeAlsoFromInSearches','0','','Include see-also-from references in searches.','YesNo') - }); + } + ); - say $out "Added new system preference 'IncludeSeeAlsoFromInSearches'"; + say_success( $out, "Added new system preference 'IncludeSeeAlsoFromInSearches'" ); }, }; -- 2.39.5