New feature - database update - Number of Returned Items to Show
authorMichael Hafen <mdhafen@tech.washk12.org>
Fri, 24 Apr 2009 17:53:44 +0000 (11:53 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 24 Apr 2009 18:25:28 +0000 (13:25 -0500)
This is the database update to add the system preference for
numReturnedItemsToShow

[RM note: DB rev 026]

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index 16167f9..9f85c98 100755 (executable)
@@ -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
index 6efd56b..747e7b2 100644 (file)
@@ -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