From: Michael Hafen Date: Wed, 25 Feb 2009 22:08:26 +0000 (-0700) Subject: New feature ceiling Due Date - database update X-Git-Tag: new_acq_a_porter~242 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=398a6a7fe1db9cb72cfde9128fc4ccdf3257c202;p=koha_ffzg New feature ceiling Due Date - database update This updates the database to add the syspref ceilingDueDate. Signed-off-by: Galen Charlton --- diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index afe123df73..4e209279b3 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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