MDL-15901 completion disabled by default
[moodle.git] / mod / assignment / db / upgrade.php
CommitLineData
b8a342d7 1<?php //$Id$
2
45fa3412 3// This file keeps track of upgrades to
b8a342d7 4// the assignment module
5//
6// Sometimes, changes between versions involve
7// alterations to database structures and other
8// major things that may break installations.
9//
10// The upgrade function in this file will attempt
11// to perform all the necessary actions to upgrade
12// your older installtion to the current version.
13//
14// If there's something it cannot do itself, it
15// will tell you what you need to do.
16//
17// The commands in here will all be database-neutral,
b1f93b15 18// using the methods of database_manager class
b8a342d7 19
20function xmldb_assignment_upgrade($oldversion=0) {
21
f33e1ed4 22 global $CFG, $THEME, $DB;
b8a342d7 23
24 $result = true;
25
f33e1ed4 26//===== 1.9.0 upgrade line ======//
42f50aec 27
ec29061d 28 if ($result && $oldversion < 2007101511) {
63824bbf 29 notify('Processing assignment grades, this may take a while if there are many assignments...', 'notifysuccess');
5048575d 30 // change grade typo to text if no grades MDL-13920
31 require_once $CFG->dirroot.'/mod/assignment/lib.php';
32 // too much debug output
f33e1ed4 33 $DB->set_debug(false);
5048575d 34 assignment_update_grades();
f33e1ed4 35 $DB->set_debug(true);
04264aed 36 upgrade_mod_savepoint($result, 2007101511, 'assignment');
5048575d 37 }
3b120e46 38
b8a342d7 39 return $result;
40}
41
42?>