MDL-30604 Added 2 missing messages andd deleting an incorrect one

This commit is contained in:
Eloy Lafuente (stronk7) 2011-12-09 02:01:02 +01:00
parent 46f2a9366a
commit 08416e72e3
3 changed files with 5 additions and 3 deletions

View File

@ -62,6 +62,8 @@ function xmldb_enrol_flatfile_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2010091400, 'enrol', 'flatfile');
}
// Moodle v2.2.0 release upgrade line
// Put any upgrade step following this
return $result;
}

View File

@ -30,6 +30,9 @@ function xmldb_enrol_guest_upgrade($oldversion) {
$dbman = $DB->get_manager();
// Moodle v2.2.0 release upgrade line
// Put any upgrade step following this
if ($oldversion < 2011112901) {
// convert all null passwords to empty strings
$DB->set_field('enrol', 'password', '', array('enrol'=>'guest', 'password'=>null));

View File

@ -41,8 +41,5 @@ 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;
}