[Koha-patches] [PATCH] [head] 2/2 New feature - fines editable - updatedatabase stuff
Michael Hafen
mdhafen at tech.washk12.org
Fri Apr 10 19:35:22 CEST 2009
This is the updatedatabase.pl code to add the system preference.
---
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 5651a35..2e59448 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -2303,6 +2303,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion ($DBversion);
}
+$DBversion = "3.01.00.019";
+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
+ $dbh->do( "INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AccountLinesEditable',0,'If ON Patron account lines can be changed in the staff client',NULL,'YesNo')" );
+ print "Upgrade to $DBversion done ( Add System Preference AccountLinesEditable )\n";
+ SetVersion ($DBversion);
+}
+
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table
diff --git a/kohaversion.pl b/kohaversion.pl
index c9d8661..33963cd 100644
--- a/kohaversion.pl
+++ b/kohaversion.pl
@@ -10,7 +10,7 @@
use strict;
sub kohaversion {
- our $VERSION = '3.01.00.018';
+ our $VERSION = '3.01.00.019';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install
--
1.5.6.3
More information about the Koha-patches
mailing list