MDL-23919 mod_data: completionentries can be null
This commit is contained in:
@@ -104,7 +104,7 @@ function xmldb_data_upgrade($oldversion) {
|
||||
|
||||
// Define field completionentries to be added to data. Require a number of entries to be considered complete.
|
||||
$table = new xmldb_table('data');
|
||||
$field = new xmldb_field('completionentries', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '0', 'config');
|
||||
$field = new xmldb_field('completionentries', XMLDB_TYPE_INTEGER, '10', null, null, null, '0', 'config');
|
||||
|
||||
// Conditionally launch add field timemodified.
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
|
||||
Reference in New Issue
Block a user