From 39f3ed3f10bf902354527d10896fa19c37e2f492 Mon Sep 17 00:00:00 2001 From: Brendan A Gallagher Date: Wed, 22 Mar 2017 22:16:10 +0000 Subject: [PATCH] DBREV for Bug 8010 - Search history can be added to the wrong patron Signed-off-by: Brendan A Gallagher --- Koha.pm | 2 +- ...d_LoadSearchHistoryToTheFirstLoggedUser_syspref.sql | 2 -- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_8010-add_LoadSearchHistoryToTheFirstLoggedUser_syspref.sql diff --git a/Koha.pm b/Koha.pm index b1d7a9b02f..325ac53423 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.013"; +$VERSION = "16.12.00.014"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_8010-add_LoadSearchHistoryToTheFirstLoggedUser_syspref.sql b/installer/data/mysql/atomicupdate/bug_8010-add_LoadSearchHistoryToTheFirstLoggedUser_syspref.sql deleted file mode 100644 index 157e3eeb25..0000000000 --- a/installer/data/mysql/atomicupdate/bug_8010-add_LoadSearchHistoryToTheFirstLoggedUser_syspref.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES -('LoadSearchHistoryToTheFirstLoggedUser', '1', NULL, 'If ON, the next user will automatically get the last searches in his history', 'YesNo'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 7a80e41025..a82fd23552 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -13959,6 +13959,16 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 16530 - Add a circ sidebar navigation menu)\n"; } +$DBversion = "16.12.00.014"; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ('LoadSearchHistoryToTheFirstLoggedUser', '1', NULL, 'If ON, the next user will automatically get the last searches in his history', 'YesNo'); + }); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 8010 - Search history can be added to the wrong patron)\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.20.1