Bug 20815: DBRev 20.06.00.010

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2020-07-23 10:30:31 +02:00
parent fa1571cc0a
commit 07a7dbbcf4
3 changed files with 11 additions and 11 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 = "20.06.00.009";
$VERSION = "20.06.00.010";
sub version {
return $VERSION;

View File

@ -1,10 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('NoRefundOnLostReturnedItemsAge','','','Do not refund lost item fees if item is lost for more than this number of days','Integer')
});
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 20815: Add NoRefundOnLostReturnedItemsAge system preference)\n";
}

View File

@ -22346,6 +22346,16 @@ if( CheckVersion( $DBversion ) ) {
NewVersion( $DBversion, 23391, "Hide finished ILL requests" );
}
$DBversion = '20.06.00.010';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('NoRefundOnLostReturnedItemsAge','','','Do not refund lost item fees if item is lost for more than this number of days','Integer')
});
NewVersion( $DBversion, 20815, "Add NoRefundOnLostReturnedItemsAge system preference" );
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';