From 2591dfa8a0df3372e96e556620ba22b5b79afccf Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 14 Feb 2017 22:11:51 +0100 Subject: [PATCH] Bug 17913: Database update - Add system preference AuthorityMergeMode --- Koha.pm | 2 +- installer/data/mysql/updatedatabase.pl | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Koha.pm b/Koha.pm index 07c8fbcd61..bf17acd3c1 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.11.03.000"; +$VERSION = "16.11.03.001"; sub version { return $VERSION; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6eb3b54f17..025bec6df7 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -13768,6 +13768,13 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = '16.11.03.001'; +if( CheckVersion( $DBversion ) ) { + $dbh->do( "INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES('AuthorityMergeMode','loose','loose|strict','Authority merge mode','Choice')"); + print "Upgrade to $DBversion done (Bug 17913 - Add system preference AuthorityMergeMode)\n"; + SetVersion( $DBversion ); +} + # 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.