MDL-23204 fixed course section format upgrade
authorPetr Skoda <skodak@moodle.org>
Fri, 16 Jul 2010 09:37:01 +0000 (09:37 +0000)
committerPetr Skoda <skodak@moodle.org>
Fri, 16 Jul 2010 09:37:01 +0000 (09:37 +0000)
lib/db/upgrade.php

index 5cecf0b..1a2bb8d 100644 (file)
@@ -3781,6 +3781,8 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
             $dbman->add_field($table, $field);
         }
 
             $dbman->add_field($table, $field);
         }
 
+        $DB->set_field('course_sections', 'summaryformat', 1, array()); // originally treated as HTML
+
     /// Main savepoint reached
         upgrade_main_savepoint(true, 2010052700);
     }
     /// Main savepoint reached
         upgrade_main_savepoint(true, 2010052700);
     }