Skip to content

Commit

Permalink
Add check for existing table upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
nano1895pearson committed Apr 29, 2020
1 parent a3faa8f commit 717e487
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ function xmldb_block_acclaim_upgrade($oldversion) {
$table = new xmldb_table('block_acclaim');

// Launch rename table for block_acclaim_courses.
$dbman->rename_table($table, 'block_acclaim_courses');

if ($dbman->table_exists($table)) {
$dbman->rename_table($table, 'block_acclaim_courses');
}
// Acclaim savepoint reached.
upgrade_block_savepoint(true, 2020042200, 'acclaim');
}
Expand Down

0 comments on commit 717e487

Please sign in to comment.