From b392ebb81574a1d8615c2000b3ee6c24420d0c1c 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.22.01.001) --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_13022.sql | 1 - installer/data/mysql/updatedatabase.pl | 13 +++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_13022.sql diff --git a/Koha.pm b/Koha.pm index 47265b92d4..c756469273 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.22.01.000"; +$VERSION = "3.22.01.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 8c9b5a05a0..c0b9e3e267 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -11390,6 +11390,19 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.22.01.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