Piwik\Updater\Migration\Db\Factory::addColumns PHP Method

addColumns() public method

Adding multiple columns at the same time can lead to performance improvements compared to adding each new column separately.
public addColumns ( string $table, array $columns, string | null $placeColumnAfter = null ) : AddColumns
$table string Unprefixed database table name, eg 'log_visit'.
$columns array An array of column name to column type pairs, eg array('my_column_name' => 'VARCHAR(200) NOT NULL', 'column2' => '...')
$placeColumnAfter string | null If specified, the first added column will be added after this specified column name. All following columns will be added after the previous specified in $columns. If you specify a column be sure it actually exists and can be added after this column.
return AddColumns
    public function addColumns($table, $columns, $placeColumnAfter = null)
    {
        $table = $this->prefixTable($table);
        return $this->container->make('Piwik\\Updater\\Migration\\Db\\AddColumns', array('table' => $table, 'columns' => $columns, 'placeColumnAfter' => $placeColumnAfter));
    }