From 3c286b58940e036fff5bfc797c6fecebef2378cd Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 24 Oct 2024 08:45:00 +0000 Subject: [PATCH] Bug 28575: DBRev 24.06.00.039 Signed-off-by: Katrin Fischer --- Koha.pm | 2 +- .../bug_28575-no-refund-lost-age.pl => db_revs/240600039.pl} | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) rename installer/data/mysql/{atomicupdate/bug_28575-no-refund-lost-age.pl => db_revs/240600039.pl} (69%) diff --git a/Koha.pm b/Koha.pm index dc83eca278..e43656ff02 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.038"; +$VERSION = "24.06.00.039"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_28575-no-refund-lost-age.pl b/installer/data/mysql/db_revs/240600039.pl similarity index 69% rename from installer/data/mysql/atomicupdate/bug_28575-no-refund-lost-age.pl rename to installer/data/mysql/db_revs/240600039.pl index fc172a0bd7..85935ea1c3 100755 --- a/installer/data/mysql/atomicupdate/bug_28575-no-refund-lost-age.pl +++ b/installer/data/mysql/db_revs/240600039.pl @@ -4,17 +4,16 @@ use Koha::Installer::Output qw(say_warning say_failure say_success say_info); return { bug_number => "28575", description => - "Add a syspref to prevent refunds on lost items if the fee was paid more than a set number of days ago", + "Add a system preference to prevent refunds on lost items if the fee was paid more than a set number of days ago", up => sub { my ($args) = @_; my ( $dbh, $out ) = @$args{qw(dbh out)}; - # Do you stuffs here $dbh->do( q{ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('NoRefundOnLostFinesPaidAge','','','Do not refund lost item fees if the fee was paid off more than this number of days ago','Integer') } ); - say_success( $out, "Successfully added new system preference: NoRefundOnLostFinesPaidAge" ); + say_success( $out, "Added new system preference 'NoRefundOnLostFinesPaidAge'" ); }, };