[Koha-patches] [PATCH] [2/2] New Feature - restrict previously issued titles

Michael Hafen mdhafen at tech.washk12.org
Fri Oct 9 00:59:26 CEST 2009


database update to add system preference CircRestrictPreviouslyIssued
---
 installer/data/mysql/updatedatabase.pl |    7 +++++++
 kohaversion.pl                         |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl
index 10c3451..aaee314 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -2675,6 +2675,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     SetVersion ($DBversion);
 }
 
+$DBversion = '3.01.00.062';
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('CircRestrictPreviouslyIssued', '0', 'If set,when a title is checked out warn the staff if the patron has checked out this title before.', '', 'YesNo')");
+	print "Upgrade to $DBversion done ( Added CircRestrictPreviouslyIssued 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 ec5684f..fc63d1e 100644
--- a/kohaversion.pl
+++ b/kohaversion.pl
@@ -10,7 +10,7 @@
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.01.00.061';
+    our $VERSION = '3.01.00.062';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install
-- 
1.6.0.4




More information about the Koha-patches mailing list