Piwik\Updates::doUpdate PHP Method

doUpdate() public method

This method should preform all updating logic. If you define migrations in an overridden getMigrations() method, you must call {@link Updater::executeMigrations()} here. See {@link \Piwik\Plugins\ExamplePlugin\Updates\Updates_0_0_2} for an example.
public doUpdate ( Updater $updater )
$updater Updater
    public function doUpdate(Updater $updater)
    {
        static::update();
    }