diff --git a/CHANGES.md b/CHANGES.md index c9b36ea..8944afb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,6 @@ +Changes in version 2016-06-26 (20160626) +- Change type of game_cross.createscore to double + Changes in version 2016-06-14 (20160614) - Fix Moodle 31 compatibility diff --git a/db/install.xml b/db/install.xml index f20a0cd..e024864 100755 --- a/db/install.xml +++ b/db/install.xml @@ -1,5 +1,5 @@ - @@ -144,7 +144,7 @@ - + @@ -354,4 +354,4 @@ - \ No newline at end of file + diff --git a/db/upgrade.php b/db/upgrade.php index 34d5d6b..6920e69 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -1544,5 +1544,15 @@ function xmldb_game_upgrade($oldversion) { upgrade_mod_savepoint(true, $ver, 'game'); } + + if ($oldversion < ($ver = 2016062603)) { + $table = new xmldb_table('game_cross'); + $field = new xmldb_field('createscore', XMLDB_TYPE_FLOAT, null, null, XMLDB_NOTNULL, null, '0'); + + // Launch change of type for field thisfield + $dbman->change_field_type($table, $field); + } + + return true; } diff --git a/version.php b/version.php index 07d6717..c6572ef 100644 --- a/version.php +++ b/version.php @@ -36,10 +36,10 @@ if (!isset( $plugin)) { } $plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics). -$plugin->version = 2016061403; // The current module version (Date: YYYYMMDDXX). +$plugin->version = 2016062603; // The current module version (Date: YYYYMMDDXX). $plugin->requires = 2010112400; // Requires Moodle 2.0. $plugin->cron = 0; // Period for cron to check this module (secs). -$plugin->release = '2016-06-14'; +$plugin->release = '2016-06-26'; if ($useplugin != 2) { $module = $plugin;