Skip to content

Commit 7948dd2

Browse files
kabalinpolothy
authored andcommitted
Add missing docblock for xmldb_local_travis_upgrade.
1 parent 5edcde2 commit 7948dd2

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

tests/Fixture/broken-upgrade.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@
2222
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2323
*/
2424

25+
/**
26+
* Execute local_travis upgrade from the given old version.
27+
*
28+
* @param int $oldversion
29+
* @return bool
30+
*/
2531
function xmldb_local_travis_upgrade($oldversion) {
2632
if ($oldversion < 2011033101) {
2733
upgrade_plugin_savepoint(true, 2011033102, 'local', 'travis');
2834
}
35+
return true;
2936
}

tests/Fixture/moodle-local_travis/db/upgrade.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,15 @@
2424

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

27+
/**
28+
* Execute local_travis upgrade from the given old version.
29+
*
30+
* @param int $oldversion
31+
* @return bool
32+
*/
2733
function xmldb_local_travis_upgrade($oldversion) {
2834
if ($oldversion < 2011033101) {
2935
upgrade_plugin_savepoint(true, 2011033101, 'local', 'travis');
3036
}
37+
return true;
3138
}

0 commit comments

Comments
 (0)