From 63b44f2ddd9cb67b80b840a7ad2bd3d77971cb2d Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 14 Apr 2020 15:57:58 +0100 Subject: [PATCH] Bug 21190: DBRev 19.12.00.068 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug21190.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 13 +++++++++++++ 3 files changed, 14 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug21190.perl diff --git a/Koha.pm b/Koha.pm index d3b6f92fe1..1c06c80302 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.067"; +$VERSION = "19.12.00.068"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug21190.perl b/installer/data/mysql/atomicupdate/bug21190.perl deleted file mode 100644 index 40f08e63a2..0000000000 --- a/installer/data/mysql/atomicupdate/bug21190.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do(q| -INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('AuthFailureLog','','If enabled, log authentication failures',NULL,'YesNo'), ('AuthSuccessLog','','If enabled, log successful authentications',NULL,'YesNo' ) - |); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 21190 - Add prefs AuthFailureLog and AuthSuccessLog)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index d7111e446a..2cb8dd349b 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -21529,6 +21529,19 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 20754, "Remove double accepted list shares" ); } +$DBversion = '19.12.00.068'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q| + INSERT IGNORE INTO systempreferences + (variable,value,explanation,options,type) + VALUES + ('AuthFailureLog','','If enabled, log authentication failures',NULL,'YesNo'), + ('AuthSuccessLog','','If enabled, log successful authentications',NULL,'YesNo') + |); + + NewVersion( $DBversion, 21190, "Add prefs AuthFailureLog and AuthSuccessLog"); +} + # 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.2