From d14153872bac334ac333ff685c6171f87612fa84 Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Fri, 24 Apr 2009 11:53:44 -0600 Subject: [PATCH] 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 --- installer/data/mysql/updatedatabase.pl | 8 ++++++++ kohaversion.pl | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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 -- 2.39.5