From e1fb9fb9469bea010f25e872509fd84b85d35504 Mon Sep 17 00:00:00 2001 From: Brendan Gallagher Date: Thu, 31 Dec 2015 18:38:40 +0000 Subject: [PATCH] Bug 13022: Update DB rev (3.20.07.001) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit (cherry picked from commit b392ebb81574a1d8615c2000b3ee6c24420d0c1c) Signed-off-by: Frédéric Demians --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_13022.sql | 1 - installer/data/mysql/updatedatabase.pl | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_13022.sql diff --git a/Koha.pm b/Koha.pm index 16b91fdfff..26d0273834 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 = "3.20.07.000"; +$VERSION = "3.20.07.001"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_13022.sql b/installer/data/mysql/atomicupdate/bug_13022.sql deleted file mode 100644 index 88d5a131a9..0000000000 --- a/installer/data/mysql/atomicupdate/bug_13022.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('MaxSearchResultsItemsPerRecordStatusCheck','20','Max number of items per record for which to check transit and hold status','','Integer'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 2b6ced3bfd..950ed2067d 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10692,6 +10692,20 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } + +$DBversion = "3.20.07.001"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences + (`variable`, `value`, `explanation`, `options`, `type`) + VALUES + ('MaxSearchResultsItemsPerRecordStatusCheck', '20', 'Max number of items per record for which to check transit and hold status', '', 'Integer') + }); + + print "Upgrade to $DBversion done (Bug 13022 - Hardcoded limit causes records with more than 20 items to show inaccurate statuses)\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. -- 2.39.5