From 1521585a4708db1107660d6bdfe833b30ee123b7 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 12 Feb 2019 00:35:50 +0000 Subject: [PATCH] Bug 22132: DBRev 18.05.08.001 - Revert This reverts commit 5dd2bed00cf4661cb9d1762415df649db7648e19. Signed-off-by: Lucas Gass --- Koha.pm | 2 +- .../mysql/atomicupdate/bug_22132_basic_auth.perl | 13 +++++++++++++ installer/data/mysql/updatedatabase.pl | 15 --------------- 3 files changed, 14 insertions(+), 16 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_22132_basic_auth.perl diff --git a/Koha.pm b/Koha.pm index 796625d82c..18b3c38e39 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.05.08.001"; +$VERSION = "18.05.08.000"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_22132_basic_auth.perl b/installer/data/mysql/atomicupdate/bug_22132_basic_auth.perl new file mode 100644 index 0000000000..ae98472abc --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_22132_basic_auth.perl @@ -0,0 +1,13 @@ +$DBversion = 'XXX'; +if( CheckVersion( $DBversion ) ) { + + $dbh->do(q{ + INSERT IGNORE INTO systempreferences + (variable, value, options, explanation, type ) + VALUES + ('RESTBasicAuth','0',NULL,'If enabled, Basic authentication is enabled for the REST API.','YesNo') + }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 22132 - Add Basic authentication)\n"; +} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index b4d084de30..4719d22ee9 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -16302,21 +16302,6 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } - -$DBversion = '18.05.08.001'; -if( CheckVersion( $DBversion ) ) { - - $dbh->do(q{ - INSERT IGNORE INTO systempreferences - (variable, value, options, explanation, type ) - VALUES - ('RESTBasicAuth','0',NULL,'If enabled, Basic authentication is enabled for the REST API.','YesNo') - }); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 22132 - Add Basic authentication)\n"; -} - # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5