mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
Changes to suit new upgrading procedure (admin/index.html)
This commit is contained in:
parent
ec5472d974
commit
12b820c227
@ -5,6 +5,18 @@
|
||||
// This fragment is called by /admin/index.php
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->fullname = "Assignment";
|
||||
$module->version = 20020801;
|
||||
$module->cron = 60;
|
||||
$module->search = "";
|
||||
|
||||
function assignment_upgrade($oldversion) {
|
||||
// This function does anything necessary to upgrade
|
||||
// older versions to match current functionality
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
@ -6,9 +6,17 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->fullname = "Choice";
|
||||
$module->version = "20011110";
|
||||
$module->version = 20011110;
|
||||
$module->cron = 0;
|
||||
$module->search = "";
|
||||
|
||||
function choice_upgrade($oldversion) {
|
||||
// This function does anything necessary to upgrade
|
||||
// older versions to match current functionality
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
@ -6,9 +6,17 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->fullname = "Forum";
|
||||
$module->version = "20020801";
|
||||
$module->version = 20020801;
|
||||
$module->cron = 0;
|
||||
$module->search = "";
|
||||
|
||||
function forum_upgrade($oldversion) {
|
||||
// This function does anything necessary to upgrade
|
||||
// older versions to match current functionality
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
@ -6,9 +6,21 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->fullname = "Journal";
|
||||
$module->version = "20011110";
|
||||
$module->cron = 0;
|
||||
$module->version = 200208010;
|
||||
$module->cron = 60;
|
||||
$module->search = "";
|
||||
|
||||
?>
|
||||
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;
|
||||
}
|
||||
|
@ -6,9 +6,17 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->fullname = "Survey";
|
||||
$module->version = "20011110";
|
||||
$module->version = 20020727;
|
||||
$module->cron = 0;
|
||||
$module->search = "";
|
||||
|
||||
function survey_upgrade($oldversion) {
|
||||
// This function does anything necessary to upgrade
|
||||
// older versions to match current functionality
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user