Browse Source

Fix change type of game_cross

MOODLE_20_STABLE
Vasilis Daloukas 9 years ago
parent
commit
2b2d80c1c2
  1. 3
      CHANGES.md
  2. 4
      db/install.xml
  3. 10
      db/upgrade.php
  4. 4
      version.php

3
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

4
db/install.xml

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="mod/game/db" VERSION="20160614" COMMENT="XMLDB file for Moodle mod/game"
<XMLDB PATH="mod/game/db" VERSION="20160626" COMMENT="XMLDB file for Moodle mod/game"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
>
@ -144,7 +144,7 @@
<FIELD NAME="rows" TYPE="int" LENGTH="3" NOTNULL="false" SEQUENCE="false"/>
<FIELD NAME="words" TYPE="int" LENGTH="3" NOTNULL="false" SEQUENCE="false"/>
<FIELD NAME="wordsall" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
<FIELD NAME="createscore" TYPE="int" LENGTH="3" NOTNULL="false" SEQUENCE="false"/>
<FIELD NAME="createscore" TYPE="float" NOTNULL="false" SEQUENCE="false"/>
<FIELD NAME="createtries" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
<FIELD NAME="createtimelimit" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
<FIELD NAME="createconnectors" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>

10
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;
}

4
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;

Loading…
Cancel
Save