MDL-37792 Course - Fix upgrade step and set version number for completion field fix.
authorDamyon Wiese <damyon@moodle.com>
Tue, 26 Feb 2013 02:49:46 +0000 (10:49 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 26 Feb 2013 02:49:46 +0000 (10:49 +0800)
lib/db/upgrade.php
version.php

index 0f2688e..09ea47d 100644 (file)
@@ -1660,14 +1660,14 @@ function xmldb_main_upgrade($oldversion) {
         upgrade_main_savepoint(true, 2013021902.00);
     }
 
         upgrade_main_savepoint(true, 2013021902.00);
     }
 
-    if ($oldversion < 2013022201.00) {
-        // 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'));
+    if ($oldversion < 2013022600.00) {
+        // 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);
 
         // Clear course cache (will be rebuilt on first visit) in case of changes to these.
         rebuild_course_cache(0, true);
 
-        upgrade_main_savepoint(true, 2013022201.00);
+        upgrade_main_savepoint(true, 2013022600.00);
     }
 
     return true;
     }
 
     return true;
index b4f828f..b72f525 100644 (file)
@@ -31,7 +31,7 @@ defined('MOODLE_INTERNAL') || die();
 
 
 
 
 
 
-$version  = 2013022500.01;              // YYYYMMDD      = weekly release date of this DEV branch
+$version  = 2013022600.00;              // YYYYMMDD      = weekly release date of this DEV branch
                                         //         RR    = release increments - 00 in DEV branches
                                         //           .XX = incremental changes
 
                                         //         RR    = release increments - 00 in DEV branches
                                         //           .XX = incremental changes