From 769073117aafbc762f8668500c87e0150391ea9a Mon Sep 17 00:00:00 2001 From: Andrew Fuerste-Henry Date: Tue, 23 Mar 2021 19:14:22 +0000 Subject: [PATCH] DBRev 20.05.09.003 Signed-off-by: Andrew Fuerste-Henry --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_27835.perl | 10 ---------- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_27835.perl diff --git a/Koha.pm b/Koha.pm index aef17e283a..b05243ad5a 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 = "20.05.09.002"; +$VERSION = "20.05.09.003"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_27835.perl b/installer/data/mysql/atomicupdate/bug_27835.perl deleted file mode 100644 index b921007969..0000000000 --- a/installer/data/mysql/atomicupdate/bug_27835.perl +++ /dev/null @@ -1,10 +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 ('ChargeFinesOnClosedDays', '0', NULL, 'Charge fines on days the library is closed.', 'YesNo') - |); - - NewVersion( $DBversion, 27835, "Add new system preference ChargeFinesOnClosedDays"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 8d0716a082..01e32c187d 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -22565,6 +22565,17 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 27808, "Adjust items.onloan if needed"); } +$DBversion = '20.05.09.003'; +if( CheckVersion( $DBversion ) ) { + + $dbh->do(q| + INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) + VALUES ('ChargeFinesOnClosedDays', '0', NULL, 'Charge fines on days the library is closed.', 'YesNo') + |); + + NewVersion( $DBversion, 27835, "Add new system preference ChargeFinesOnClosedDays"); +} + # 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.39.5