From 46085442e0acc7a3da3b2aad0ec5c8964fb465c5 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 13 Jan 2017 12:34:45 +0000 Subject: [PATCH] Bug 17486 - DBRev 16.12.00.003 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_17486.sql | 1 - installer/data/mysql/updatedatabase.pl | 7 +++++++ 3 files changed, 8 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_17486.sql diff --git a/Koha.pm b/Koha.pm index 0682bd3c3b..2214ab1404 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 = "16.12.00.002"; +$VERSION = "16.12.00.003"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_17486.sql b/installer/data/mysql/atomicupdate/bug_17486.sql deleted file mode 100644 index ad238d22fc..0000000000 --- a/installer/data/mysql/atomicupdate/bug_17486.sql +++ /dev/null @@ -1 +0,0 @@ -DELETE FROM systempreferences WHERE variable="Persona"; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 87d71e3e1f..91cda76b20 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -13781,6 +13781,13 @@ if ( CheckVersion($DBversion) ) { print "Upgrade to $DBversion done (Bug 14187 - branchtransfer needs a primary key (id) for DBIx and common sense.)\n"; } +$DBversion = '16.12.00.003'; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{DELETE FROM systempreferences WHERE variable="Persona"}); + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 17486 - Remove 'Mozilla Persona' as an authentication method)\n"; +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5