From 49090d9860da6d35747d1ff206f09a03948dff44 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 23 Jul 2024 17:00:14 +0100 Subject: [PATCH] Bug 36996: DBRev 24.06.00.020 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- .../add_z3950status_syspref.pl => db_revs/240600020.pl} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename installer/data/mysql/{atomicupdate/add_z3950status_syspref.pl => db_revs/240600020.pl} (77%) diff --git a/Koha.pm b/Koha.pm index f3c0b5e016..209c692b65 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.019"; +$VERSION = "24.06.00.020"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/add_z3950status_syspref.pl b/installer/data/mysql/db_revs/240600020.pl similarity index 77% rename from installer/data/mysql/atomicupdate/add_z3950status_syspref.pl rename to installer/data/mysql/db_revs/240600020.pl index 220bb766a8..9cb9b1c2d6 100755 --- a/installer/data/mysql/atomicupdate/add_z3950status_syspref.pl +++ b/installer/data/mysql/db_revs/240600020.pl @@ -14,8 +14,8 @@ return { INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea') } - ); - - say $out "Added new system preference 'Z3950Status'"; + ) != '0E0' + ? say_success( $out, "Added new system preference 'Z3950Status'" ) + : say_info( $out, "System preference 'Z3950Status' already exists" ); }, }; -- 2.39.5