From 914f448fe1c1d5c01e3188a827a0d18ec3001b45 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 31 Jan 2019 13:36:04 +0000 Subject: [PATCH] Bug 22132: DBRev 18.12.00.012 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../mysql/atomicupdate/bug_22132_basic_auth.perl | 13 ------------- installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 3 files changed, 13 insertions(+), 14 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_22132_basic_auth.perl diff --git a/Koha.pm b/Koha.pm index e5b1a0df1d..e69dcb76d7 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.011"; +$VERSION = "18.12.00.012"; 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 329f20816e..510777ecca 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -17310,6 +17310,18 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 22155 - biblio_metadata.marcflavour should be renamed 'schema')\n"; } +$DBversion = '18.12.00.012'; +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