Skip to content

Commit

Permalink
Fixing order of if statements in upgrade.php to pass automated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnOLane committed Jul 15, 2024
1 parent 1f28595 commit 213075e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,6 @@ function xmldb_zoom_upgrade($oldversion) {
upgrade_mod_savepoint(true, 2019061800, 'zoom');
}

if ($oldversion < 2020072000) {
// Change field alternative_hosts from type char(255) to text.
$table = new xmldb_table('zoom');
$field = new xmldb_field('alternative_hosts', XMLDB_TYPE_TEXT, null, null, null, null, null, 'exists_on_zoom');
$dbman->change_field_type($table, $field);

// Zoom savepoint reached.
upgrade_mod_savepoint(true, 2020072000, 'zoom');
}

if ($oldversion < 2020042600) {
// Change field zoom_meeting_participants from type int(11) to char(35),
Expand Down Expand Up @@ -355,6 +346,16 @@ function xmldb_zoom_upgrade($oldversion) {
upgrade_mod_savepoint(true, 2020042700, 'zoom');
}

if ($oldversion < 2020072000) {
// Change field alternative_hosts from type char(255) to text.
$table = new xmldb_table('zoom');
$field = new xmldb_field('alternative_hosts', XMLDB_TYPE_TEXT, null, null, null, null, null, 'exists_on_zoom');
$dbman->change_field_type($table, $field);

// Zoom savepoint reached.
upgrade_mod_savepoint(true, 2020072000, 'zoom');
}

if ($oldversion < 2020080100) {
// Define field option_mute_upon_entry to be added to zoom.
$table = new xmldb_table('zoom');
Expand Down

0 comments on commit 213075e

Please sign in to comment.