Browse Source

Fix: allow null at field game_cros.createscrore

MOODLE_20_STABLE
Vasilis Daloukas 8 years ago
parent
commit
2ca44530df
  1. 2
      db/upgrade.php

2
db/upgrade.php

@ -1547,7 +1547,7 @@ function xmldb_game_upgrade($oldversion) {
if ($oldversion < ($ver = 2016062603)) { if ($oldversion < ($ver = 2016062603)) {
$table = new xmldb_table('game_cross'); $table = new xmldb_table('game_cross');
$field = new xmldb_field('createscore', XMLDB_TYPE_FLOAT, null, null, XMLDB_NOTNULL, null, '0'); $field = new xmldb_field('createscore', XMLDB_TYPE_FLOAT, null, null, XMLDB_NULL, null, '0');
// Launch change of type for field thisfield // Launch change of type for field thisfield
$dbman->change_field_type($table, $field); $dbman->change_field_type($table, $field);

Loading…
Cancel
Save