Skip to content

Commit

Permalink
Fix jleyva#228: Fixed remote column missing in schema check
Browse files Browse the repository at this point in the history
  • Loading branch information
jnlar authored and Nathan Nguyen committed Nov 21, 2024
1 parent dd91194 commit 1518aef
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,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 @@ -151,6 +140,17 @@ function xmldb_block_configurable_reports_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2019062001, 'block', 'configurable_reports');
}

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');
}

if ($oldversion < 2024051300) {
$table = new xmldb_table('block_configurable_reports');
$field = new xmldb_field('displaytotalrecords', XMLDB_TYPE_INTEGER, '1', XMLDB_UNSIGNED, null, null, '1', null);
Expand Down

0 comments on commit 1518aef

Please sign in to comment.