From d80e5a2bb633419f9ca52b7d289829543341f7bd Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 10 May 2019 12:09:59 +0000 Subject: [PATCH] Bug 14407: DBRev 18.12.00.070 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_14407.sql | 4 ---- installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 3 files changed, 13 insertions(+), 5 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_14407.sql diff --git a/Koha.pm b/Koha.pm index 6740d5dcf1..4e174a9d2c 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 = "18.12.00.069"; +$VERSION = "18.12.00.070"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_14407.sql b/installer/data/mysql/atomicupdate/bug_14407.sql deleted file mode 100644 index 49b0a378ed..0000000000 --- a/installer/data/mysql/atomicupdate/bug_14407.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT IGNORE INTO systempreferences - ( `variable`, `value`, `options`, `explanation`, `type` ) -VALUES -('SelfCheckAllowByIPRanges','',NULL,'(Leave blank if not used. Use ranges or simple ip addresses separated by spaces, like 192.168.1.1 192.168.0.0/24.)','Short'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 9b93094b89..a5420f6ca0 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -18447,6 +18447,18 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 22053 - enable all plugins)\n"; } +$DBversion = '18.12.00.070'; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences + ( `variable`, `value`, `options`, `explanation`, `type` ) + VALUES + ('SelfCheckAllowByIPRanges','',NULL,'(Leave blank if not used. Use ranges or simple ip addresses separated by spaces, like 192.168.1.1 192.168.0.0/24.)','Short'); + }); + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 14407 - Limit web-based self-checkout to specific IP addresses)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5