Updating patronimages syspref to reflect current sysprefs.sql
authorChris Nighswonger <cnighswonger@foundations.edu>
Wed, 19 Mar 2008 11:10:01 +0000 (07:10 -0400)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 19 Mar 2008 16:14:20 +0000 (11:14 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index 6ab5eb9..b82d9f1 100755 (executable)
@@ -1223,6 +1223,13 @@ DEFAULT CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP;
     SetVersion ($DBversion);
 }
 
+$DBversion = "3.00.00.067";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+    $dbh->do("UPDATE systempreferences SET explanation = 'Enable patron images for the Staff Client', type = 'YesNo' WHERE variable = 'patronimages'");
+    print "Upgrade to $DBversion done (Updating patronimages syspref to reflect current kohastructure.sql. ) ";
+    SetVersion ($DBversion);
+}
+
 =item DropAllForeignKeys($table)
 
   Drop all foreign keys of the table $table
index 749cdfe..b41e3ad 100644 (file)
@@ -10,7 +10,7 @@
 use strict;
 
 sub kohaversion {
-    our $VERSION = "3.00.00.066";
+    our $VERSION = "3.00.00.067";
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install