Cake\Database\Schema\PostgresSchema::indexSql PHP Method

indexSql() public method

{@inheritDoc}
public indexSql ( Cake\Database\Schema\Table $table, $name )
$table Cake\Database\Schema\Table
    public function indexSql(Table $table, $name)
    {
        $data = $table->index($name);
        $columns = array_map([$this->_driver, 'quoteIdentifier'], $data['columns']);
        return sprintf('CREATE INDEX %s ON %s (%s)', $this->_driver->quoteIdentifier($name), $this->_driver->quoteIdentifier($table->name()), implode(', ', $columns));
    }