Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #228: Fix remote column missing in schema check #229

Open
wants to merge 1 commit into
base: MOODLE_4x_STABLE
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 < 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;
}
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