Skip to content

Commit

Permalink
Merge pull request #32 from YourAcclaim/add-check-for-existing-table-…
Browse files Browse the repository at this point in the history
…upgrade-script

Add check for existing table upgrade script
  • Loading branch information
nano1895pearson authored Apr 29, 2020
2 parents a3faa8f + 717e487 commit c76c2e0
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 c76c2e0

Please sign in to comment.