New feature ceiling Due Date - database update
authorMichael Hafen <mdhafen@tech.washk12.org>
Wed, 25 Feb 2009 22:08:26 +0000 (15:08 -0700)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 24 Apr 2009 17:49:56 +0000 (12:49 -0500)
This updates the database to add the syspref ceilingDueDate.

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

index afe123d..4e20927 100755 (executable)
@@ -2349,6 +2349,14 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     SetVersion ($DBversion);
 }
 
+$DBversion = '3.01.00.023';
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+    $dbh->do("INSERT INTO `systempreferences` ( `variable` , `value` , `options` , `explanation` , `type` ) VALUES ( 'ceilingDueDate', '', '', 'If set, date due will not be past this date.  Enter date according to the dateformat System Preference', 'free')");
+
+    print "Upgrade to $DBversion done (added ceilingDueDate system preference)\n";
+    SetVersion ($DBversion);
+}
+
 =item DropAllForeignKeys($table)
 
   Drop all foreign keys of the table $table