From dd33150416d362ac2c49a149f3e2576f857b34d2 Mon Sep 17 00:00:00 2001 From: Vasilis Daloukas Date: Mon, 21 Dec 2015 20:42:37 +0200 Subject: [PATCH] Fix:Field userlanguage in table game --- db/install.xml | 405 +++++++++++++++++++++++++------------------------ db/upgrade.php | 11 ++ version.php | 4 +- 3 files changed, 216 insertions(+), 204 deletions(-) mode change 100644 => 100755 db/install.xml diff --git a/db/install.xml b/db/install.xml old mode 100644 new mode 100755 index 9d5bdaf..6294ef4 --- a/db/install.xml +++ b/db/install.xml @@ -1,69 +1,70 @@ - - +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- +
- - - - - - - - - - - - - + + + + + + + + + + + + + @@ -72,44 +73,44 @@
- +
- - - - - + + + + + - - + +
- +
- - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + @@ -118,79 +119,79 @@
- +
- - - - - - - - - + + + + + + + + +
- +
- - - - - - - - - - - - + + + + + + + + + + + +
- +
- - + +
- +
- - - - + + + +
- +
- - - - - + + + + +
- +
- - - - + + + + @@ -199,20 +200,20 @@
- +
- - + +
- +
- - - + + + @@ -221,12 +222,12 @@
- +
- - - - + + + + @@ -235,113 +236,113 @@
- +
- - - - - - - - - - - + + + + + + + + + + +
- +
- - - - - - - - - + + + + + + + + +
- +
- - - - - + + + + +
- +
- - - - - - - - - - - - - + + + + + + + + + + + + +
- +
- - - + + +
- +
- - - - - + + + + +
- +
- - - - + + + +
- +
- - - - - - + + + + + + @@ -351,4 +352,4 @@
-
+ \ No newline at end of file diff --git a/db/upgrade.php b/db/upgrade.php index 7f7eedf..c365edb 100755 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -1492,6 +1492,17 @@ function xmldb_game_upgrade($oldversion) { // game savepoint reached upgrade_mod_savepoint(true, 2013072601, 'game'); } + + if( $oldversion < 2015122105) + { + $table = new xmldb_table('game'); + $field = new xmldb_field('userlanguage', XMLDB_TYPE_CHAR, '100'); + if (!$dbman->field_exists($table, $field)) { + $dbman->add_field($table, $field); + } + + upgrade_mod_savepoint(true, 2015122105, 'game'); + } return true; } diff --git a/version.php b/version.php index d7c41b7..f6b9402 100755 --- a/version.php +++ b/version.php @@ -22,10 +22,10 @@ if( !isset( $plugin)) $useplugin = 2; $plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics) -$plugin->version = 2015071504; // The current module version (Date: YYYYMMDDXX) +$plugin->version = 2015122105; // 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 = '3.30.15.4'; +$plugin->release = '3.36.21.5'; if( $useplugin != 2) $module = $plugin;