public function createIndex(array $columnNames, $unique = false, $name = null)
    {
        $index = new Index($name, $columnNames, $unique);
        $this->addIndex($index);

        return $index;
    }
public function createIndex(array $columnNames, $unique = false, $name = null)
    {
        $index = new Index($name, $columnNames, $unique);
        $this->addIndex($index);

        return $index;
    }
public function createIndex ( array $ columnNames , $ unique = false , $ name = null ) { $ index = new Index ( $ name , $ columnNames , $ unique ) ; $ this -> addIndex ( $ index ) ; return $ index ; }
Creates and adds a new index.

@param array   $columnNames The index column names.
@param boolean $unique      TRUE if the index is unique else FALSE.
@param string  $name        The index name.

@return \Fridge\DBAL\Schema\Index The new index.
Creates and adds a new index .