diff --git a/db/upgrade.php b/db/upgrade.php index a51b5be6..2970d36b 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -62,17 +62,6 @@ function xmldb_block_configurable_reports_upgrade($oldversion) { upgrade_plugin_savepoint(true, 2011040106, 'block', 'configurable_reports'); } - if ($oldversion < 2011040115) { - - $table = new xmldb_table('block_configurable_reports'); - - $field = new xmldb_field('remote', XMLDB_TYPE_INTEGER, '1', XMLDB_UNSIGNED, null, null, '0', null); - if (!$dbman->field_exists($table, $field)) { - $dbman->add_field($table, $field); - } - upgrade_plugin_savepoint(true, 2011040115, 'block', 'configurable_reports'); - } - if ($oldversion < 2019020600) { $table = new xmldb_table('block_configurable_reports'); $field = new xmldb_field('summaryformat'); @@ -144,5 +133,16 @@ function xmldb_block_configurable_reports_upgrade($oldversion) { upgrade_plugin_savepoint(true, 2019062001, 'block', 'configurable_reports'); } - return true; -} \ No newline at end of file + if ($oldversion < 2020110301) { + + $table = new xmldb_table('block_configurable_reports'); + + $field = new xmldb_field('remote', XMLDB_TYPE_INTEGER, '1', XMLDB_UNSIGNED, null, null, '0', null); + if (!$dbman->field_exists($table, $field)) { + $dbman->add_field($table, $field); + } + upgrade_plugin_savepoint(true, 2020110301, 'block', 'configurable_reports'); + } + + return true; +} diff --git a/version.php b/version.php index 7918476c..7843f440 100755 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2020110300; // Plugin version. +$plugin->version = 2020110301; // Plugin version. $plugin->requires = 2017111300; // require Moodle version (3.4). $plugin->maturity = MATURITY_STABLE; $plugin->release = '3.9.0';