MDL-44712 scorm: make upgrade match install.xml defintion
authorDan Poltawski <dan@moodle.com>
Mon, 22 Aug 2016 11:40:03 +0000 (12:40 +0100)
committerDan Poltawski <dan@moodle.com>
Mon, 22 Aug 2016 11:40:03 +0000 (12:40 +0100)
mod/scorm/db/upgrade.php

index 41b028f..9502961 100644 (file)
@@ -112,7 +112,7 @@ function xmldb_scorm_upgrade($oldversion) {
     if ($oldversion < 2016080900) {
         $table = new xmldb_table('scorm');
 
-        $field = new xmldb_field('completionstatusallscos', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, '0', 'completionscorerequired');
+        $field = new xmldb_field('completionstatusallscos', XMLDB_TYPE_INTEGER, '1', null, null, null, null, 'completionscorerequired');
         if (!$dbman->field_exists($table, $field)) {
             $dbman->add_field($table, $field);
         }