Piwik\Updates\Updates_2_13_1::getMigrations PHP Method

getMigrations() public method

Here you can define one or multiple SQL statements that should be executed during the update.
public getMigrations ( Updater $updater ) : Migration[]
$updater Piwik\Updater
return Piwik\Updater\Migration[]
    public function getMigrations(Updater $updater)
    {
        $optionTable = Common::prefixTable('option');
        $removeEmptyDefaultReportsSql = "delete from `{$optionTable}` where option_name like '%defaultReport%' and option_value=''";
        return array($this->migration->db->sql($removeEmptyDefaultReportsSql));
    }