Skip to content

Commit

Permalink
Add missing docblock for xmldb_local_travis_upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
kabalin authored and polothy committed Feb 20, 2019
1 parent 5edcde2 commit 7948dd2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Fixture/broken-upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

/**
* Execute local_travis upgrade from the given old version.
*
* @param int $oldversion
* @return bool
*/
function xmldb_local_travis_upgrade($oldversion) {
if ($oldversion < 2011033101) {
upgrade_plugin_savepoint(true, 2011033102, 'local', 'travis');
}
return true;
}
7 changes: 7 additions & 0 deletions tests/Fixture/moodle-local_travis/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@

defined('MOODLE_INTERNAL') || die();

/**
* Execute local_travis upgrade from the given old version.
*
* @param int $oldversion
* @return bool
*/
function xmldb_local_travis_upgrade($oldversion) {
if ($oldversion < 2011033101) {
upgrade_plugin_savepoint(true, 2011033101, 'local', 'travis');
}
return true;
}

0 comments on commit 7948dd2

Please sign in to comment.