mirror of
https://github.com/moodle/moodle.git
synced 2025-03-16 13:40:15 +01:00
25 lines
719 B
PHP
25 lines
719 B
PHP
<?PHP // $Id$
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
// Code fragment to define the module version etc.
|
|
// This fragment is called by /admin/index.php
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
$module->version = 200208010;
|
|
$module->cron = 60;
|
|
|
|
function journal_upgrade($oldversion) {
|
|
// This function does anything necessary to upgrade
|
|
// older versions to match current functionality
|
|
|
|
$result = true;
|
|
|
|
if ($oldversion < 20020810) {
|
|
if (! execute_sql("ALTER TABLE `journal_entries` ADD `mailed` TINYINT(1) UNSIGNED DEFAULT '0' NOT NULL")) {
|
|
$result = false;
|
|
}
|
|
}
|
|
|
|
return $result;
|
|
}
|