It's not required that all modules have the old upgrade function and

the new upgrade function.
This commit is contained in:
moodler
2006-08-28 02:10:23 +00:00
parent 931ef52833
commit 668896e531
+1 -3
View File
@@ -243,7 +243,6 @@ function upgrade_activity_modules($return) {
} else {
notify ('Upgrade function ' . $oldupgrade_function . ' was not available in ' .
$mod . ': ' . $fullmod . '/db/' . $CFG->dbtype . '.php');
continue;
}
/// Then, the new function if exists and the old one was ok
@@ -254,11 +253,10 @@ function upgrade_activity_modules($return) {
} else {
notify ('Upgrade function ' . $newupgrade_function . ' was not available in ' .
$mod . ': ' . $fullmod . '/db/upgrade.php');
continue;
}
/// Now analyze upgrade results
if ($oldupgrade_status && $newupgrade_status) {
if ($oldupgrade_status && $newupgrade_status) { // No upgrading failed
$db->debug=false;
// OK so far, now update the modules record
$module->id = $currmodule->id;