MDL-30604 Added upgrade lines to upgrade.php(s)

This commit is contained in:
Aparup Banerjee 2011-12-08 11:59:01 +08:00 committed by Eloy Lafuente (stronk7)
parent 20405d1b44
commit 46f2a9366a
53 changed files with 159 additions and 1 deletions

View file

@ -40,5 +40,9 @@ defined('MOODLE_INTERNAL') || die();
function question_fix_random_question_parents() {
global $CFG, $DB;
$DB->execute("UPDATE {question} SET parent = id WHERE qtype = 'random' AND parent <> id");
// Moodle v2.2.0 release upgrade line
// Put any upgrade step following this
return true;
}