Browse Source

Bug 25429: DBRev 21.06.00.030

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.11.x
Jonathan Druart 4 months ago
parent
commit
7ce74ab133
  1. 2
      Koha.pm
  2. 9
      installer/data/mysql/atomicupdate/bug_25429.perl
  3. 14
      installer/data/mysql/db_revs/210600030.pl

2
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 = "21.06.00.029";
$VERSION = "21.06.00.030";
sub version {
return $VERSION;

9
installer/data/mysql/atomicupdate/bug_25429.perl

@ -1,9 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('CleanUpDatabaseReturnClaims', '', '', 'Sets the age of resolved return claims to delete from the database for cleanup_database.pl', 'Integer' );
});
NewVersion( $DBversion, 25429, "Cleanup Database - remove resolved claims returned from db after X days");
}

14
installer/data/mysql/db_revs/210600030.pl

@ -0,0 +1,14 @@
use Modern::Perl;
return {
bug_number => "25429",
description => "Add new system preference CleanUpDatabaseReturnClaims",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('CleanUpDatabaseReturnClaims', '', '', 'Sets the age of resolved return claims to delete from the database for cleanup_database.pl', 'Integer' );
});
},
}
Loading…
Cancel
Save