MDL-5583 mod_data: Unify mod_data version

This commit is contained in:
David Monllao 2015-03-10 10:08:32 +08:00
parent 039b74fd01
commit 25ffb8d561
3 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="mod/data/db" VERSION="20150205" COMMENT="XMLDB file for Moodle mod/data"
<XMLDB PATH="mod/data/db" VERSION="20150309" COMMENT="XMLDB file for Moodle mod/data"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
>
@ -107,4 +107,4 @@
</KEYS>
</TABLE>
</TABLES>
</XMLDB>
</XMLDB>

View file

@ -137,7 +137,7 @@ function xmldb_data_upgrade($oldversion) {
// Moodle v2.8.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2015022600) {
if ($oldversion < 2015030900) {
// Define field required to be added to data_fields.
$table = new xmldb_table('data_fields');
$field = new xmldb_field('required', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, '0', 'description');
@ -147,7 +147,7 @@ function xmldb_data_upgrade($oldversion) {
$dbman->add_field($table, $field);
}
upgrade_mod_savepoint(true, 2015022600, 'data');
upgrade_mod_savepoint(true, 2015030900, 'data');
}
return true;

View file

@ -24,7 +24,7 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2015022600; // The current module version (Date: YYYYMMDDXX)
$plugin->version = 2015030900; // The current module version (Date: YYYYMMDDXX)
$plugin->requires = 2014110400; // Requires this Moodle version
$plugin->component = 'mod_data'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 0;