From: Michael Hafen Date: Fri, 24 Apr 2009 17:53:44 +0000 (-0600) Subject: New feature - database update - Number of Returned Items to Show X-Git-Tag: new_acq_a_porter~239 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=d14153872bac334ac333ff685c6171f87612fa84;p=koha-ffzg.git New feature - database update - Number of Returned Items to Show This is the database update to add the system preference for numReturnedItemsToShow [RM note: DB rev 026] Signed-off-by: Galen Charlton --- diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 16167f9719..9f85c9888d 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -2357,6 +2357,14 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = '3.01.00.026'; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO `systempreferences` ( `variable` , `value` , `options` , `explanation` , `type` ) VALUES ( 'numReturnedItemsToShow', '20', '', 'Number of returned items to show on the check-in page', 'Integer')"); + + print "Upgrade to $DBversion done (added numReturnedItemsToShow system preference)\n"; + SetVersion ($DBversion); +} + =item DropAllForeignKeys($table) Drop all foreign keys of the table $table diff --git a/kohaversion.pl b/kohaversion.pl index 6efd56b51c..747e7b2b23 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -10,7 +10,7 @@ use strict; sub kohaversion { - our $VERSION = '3.01.00.025'; + our $VERSION = '3.01.00.026'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install