lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
public function createIndex(Index $index, $table)
    {
        $this->_execSql($this->_platform->getCreateIndexSQL($index, $table));
    }
public function createIndex(Index $index, $table)
    {
        $this->_execSql($this->_platform->getCreateIndexSQL($index, $table));
    }
public function createIndex ( Index $ index , $ table ) { $ this -> _execSql ( $ this -> _platform -> getCreateIndexSQL ( $ index , $ table ) ) ; }
Creates a new index on a table.

@param Table|string $table The name of the table on which the index is to be created.

@return void
Creates a new index on a table .