From 0f3c451c9dcb7597e9906a44a1c623a736cc7e5e Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 15 Apr 2020 12:30:12 +0100 Subject: [PATCH] Bug 24380: DBRev 19.12.00.072 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_24380.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_24380.perl diff --git a/Koha.pm b/Koha.pm index b626d6eef2..47fd8aea18 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 = "19.12.00.071"; +$VERSION = "19.12.00.072"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_24380.perl b/installer/data/mysql/atomicupdate/bug_24380.perl deleted file mode 100644 index b5cb55f8a4..0000000000 --- a/installer/data/mysql/atomicupdate/bug_24380.perl +++ /dev/null @@ -1,9 +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 - ('CalculateFinesOnBackdate','1','','Switch to control if overdue fines are calculated on return when backdating','YesNo'); - }); - - NewVersion( $DBversion, 24380, "Add syspref CalculateFinesOnBackdate"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 45ec67c068..c8c346c9ce 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -21599,6 +21599,16 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 22887, \@description ); } +$DBversion = '19.12.00.072'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ('CalculateFinesOnBackdate','1','','Switch to control if overdue fines are calculated on return when backdating','YesNo'); + }); + + NewVersion( $DBversion, 24380, "Add syspref CalculateFinesOnBackdate"); +} + # 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/'; -- 2.20.1