Piwik\Plugins\Goals\Updates_3_0_0_b1::getMigrations PHP 메소드

getMigrations() 공개 메소드

Here you can define one or multiple SQL statements that should be executed during the update.
public getMigrations ( Updater $updater ) : Migration[]
$updater Piwik\Updater
리턴 Piwik\Updater\Migration[]
    public function getMigrations(Updater $updater)
    {
        return array($this->migration->db->addColumn('goal', 'description', 'VARCHAR(255) NOT NULL DEFAULT \'\'', 'name'));
    }