Skip to content

Commit

Permalink
MDL-37792 Conditions: Fix upgrade step in previous patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Feb 26, 2013
1 parent db0c7b4 commit 382b3d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/db/upgrade.php
Expand Up @@ -1601,9 +1601,9 @@ function xmldb_main_upgrade($oldversion) {
}

if ($oldversion < 2012120301.13) {
// Delete entries regarding invalid 'idnumber' option which breaks course.
$DB->delete_records('course_sections_avail_fields', array('userfield' => 'idnumber'));
$DB->delete_records('course_modules_avail_fields', array('userfield' => 'idnumber'));
// Delete entries regarding invalid 'interests' option which breaks course.
$DB->delete_records('course_sections_avail_fields', array('userfield' => 'interests'));
$DB->delete_records('course_modules_avail_fields', array('userfield' => 'interests'));
// Clear course cache (will be rebuilt on first visit) in case of changes to these.
rebuild_course_cache(0, true);

Expand Down

0 comments on commit 382b3d7

Please sign in to comment.