Piwik\Updates::getMigrations PHP Method

getMigrations() public method

Migrations should be defined here, instead of in doUpdate(), since this method is used to display a preview of which migrations and database queries an update will run. If you execute migrations directly in doUpdate(), they won't be displayed to the user.
public getMigrations ( Updater $updater ) : Migration[]
$updater Updater
return Piwik\Updater\Migration[]
    public function getMigrations(Updater $updater)
    {
        return $this->getMigrationQueries($updater);
    }