diff --git a/admin/report/customlang/db/install.xml b/admin/report/customlang/db/install.xml index 361616b081658..9392220783109 100644 --- a/admin/report/customlang/db/install.xml +++ b/admin/report/customlang/db/install.xml @@ -1,5 +1,5 @@ - @@ -30,11 +30,11 @@ - + - + \ No newline at end of file diff --git a/admin/report/customlang/db/upgrade.php b/admin/report/customlang/db/upgrade.php index 0a947db28314f..0b1255378b9f9 100644 --- a/admin/report/customlang/db/upgrade.php +++ b/admin/report/customlang/db/upgrade.php @@ -57,5 +57,18 @@ function xmldb_report_customlang_upgrade($oldversion) { upgrade_plugin_savepoint(true, 2010111500, 'report', 'customlang'); } + /** + * Change the version field from integer to varchar + */ + if ($oldversion < 2011041900) { + $table = new xmldb_table('report_customlang_components'); + $field = new xmldb_field('version', XMLDB_TYPE_CHAR, '255', null, null, null, null, 'name'); + + $dbman->change_field_type($table, $field); + + upgrade_plugin_savepoint(true, 2011041900, 'report', 'customlang'); + } + + return $result; } diff --git a/admin/report/customlang/version.php b/admin/report/customlang/version.php index 78fa1921a6d40..96b03d5ce8c7a 100644 --- a/admin/report/customlang/version.php +++ b/admin/report/customlang/version.php @@ -24,5 +24,5 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2010120900; +$plugin->version = 2011041900; $plugin->requires = 2010120700;