lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
public function dropAndCreateIndex(Index $index, $table)
    {
        $this->tryMethod('dropIndex', $index->getQuotedName($this->_platform), $table);
        $this->createIndex($index, $table);
    }
public function dropAndCreateIndex(Index $index, $table)
    {
        $this->tryMethod('dropIndex', $index->getQuotedName($this->_platform), $table);
        $this->createIndex($index, $table);
    }
public function dropAndCreateIndex ( Index $ index , $ table ) { $ this -> tryMethod ( 'dropIndex' , $ index -> getQuotedName ( $ this -> _platform ) , $ table ) ; $ this -> createIndex ( $ index , $ table ) ; }
Drops and 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
Drops and creates a new index on a table .