In the firstline of the upgrade.php file there is the following require statement.
require(__DIR__.'/../../config.php');
So this will only upgrade the moodle which the upgrade.php file is called.
So you don't have to specify a directory parameter.
In the firstline of the upgrade.php file there is the following require statement.
require(__DIR__.'/../../config.php');
So this will only upgrade the moodle which the upgrade.php file is called.
So you don't have to specify a directory parameter.