From 5dd2bed00cf4661cb9d1762415df649db7648e19 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 7 Feb 2019 23:31:38 +0000 Subject: [PATCH] Bug 22132: DBRev 18.05.08.001 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, 16 insertions(+), 14 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_22132_basic_auth.perl diff --git a/Koha.pm b/Koha.pm index 18b3c38e39..796625d82c 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.000"; +$VERSION = "18.05.08.001"; 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 deleted file mode 100644 index ae98472abc..0000000000 --- a/installer/data/mysql/atomicupdate/bug_22132_basic_auth.perl +++ /dev/null @@ -1,13 +0,0 @@ -$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 4719d22ee9..b4d084de30 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -16302,6 +16302,21 @@ 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