Bug 28575: DBRev 24.06.00.039

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Katrin Fischer 2024-10-24 08:45:00 +00:00
parent 75bca45733
commit 3c286b5894
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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'" );
},
};