I think this would require ceilingDueDate to be added to: - installer/data/mysql/en/mandatory/sysprefs.sql - installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql
at the same time. --Joe On Wed, Feb 25, 2009 at 5:08 PM, Michael Hafen <[email protected]>wrote: > This updates the database to add the syspref ceilingDueDate. > --- > installer/data/mysql/updatedatabase.pl | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/installer/data/mysql/updatedatabase.pl > b/installer/data/mysql/updatedatabase.pl > index 6b4d6ba..4f6f59b 100755 > --- a/installer/data/mysql/updatedatabase.pl > +++ b/installer/data/mysql/updatedatabase.pl > @@ -2221,6 +2221,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 > -- > 1.5.6.3 > > _______________________________________________ > Koha-patches mailing list > [email protected] > http://lists.koha.org/mailman/listinfo/koha-patches >
_______________________________________________ Koha-patches mailing list [email protected] http://lists.koha.org/mailman/listinfo/koha-patches
