MDL-10516 Question Type - Fix upgrade code so new install matches upgrade.

This commit is contained in:
Damyon Wiese
2013-04-03 12:21:04 +08:00
parent 25f6019128
commit 178652e9eb
+1 -1
View 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);