Skip to content

Commit

Permalink
Issue228: fix remote column missing in schema check
Browse files Browse the repository at this point in the history
  • Loading branch information
jnlar committed Dec 20, 2022
1 parent e4b060b commit d669852
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -144,5 +133,16 @@ function xmldb_block_configurable_reports_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2019062001, 'block', 'configurable_reports');
}

return true;
}
if ($oldversion < 2022122000) {

$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, 2022122000, 'block', 'configurable_reports');
}

return true;
}
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit d669852

Please sign in to comment.