MDL-10516 Question Type - Fix upgrade code so new install matches upgrade.
authorDamyon Wiese <damyon@moodle.com>
Wed, 3 Apr 2013 04:21:04 +0000 (12:21 +0800)
committerDamyon Wiese <damyon@moodle.com>
Wed, 3 Apr 2013 04:21:04 +0000 (12:21 +0800)
question/type/essay/db/upgrade.php

index 4f04268..f56535b 100644 (file)
@@ -126,7 +126,7 @@ function xmldb_qtype_essay_upgrade($oldversion) {
             $dbman->add_field($table, $field);
         }
 
-        $field = new xmldb_field('responsetemplateformat', XMLDB_TYPE_INTEGER, '2',
+        $field = new xmldb_field('responsetemplateformat', XMLDB_TYPE_INTEGER, '4',
                 null, XMLDB_NOTNULL, null, '0', 'responsetemplate');
         if (!$dbman->field_exists($table, $field)) {
             $dbman->add_field($table, $field);