Skip to content

Commit

Permalink
Travis tidy up and automatic purge all caches on upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed May 8, 2017
1 parent d44d6cd commit 3dd1b6d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@
*
* @param int $oldversion
*/
function xmldb_block_theme_selector_upgrade($oldversion) {
function xmldb_block_theme_selector_upgrade($oldversion = 0) {

// Moodle v2.9.0 release upgrade line.
// Put any upgrade step following this.
// Automatic 'Purge all caches'....
if ($oldversion < 2117050800) {
purge_all_caches();
}

return true;
}

0 comments on commit 3dd1b6d

Please sign in to comment.