DoctrineMigrations\Version20161014100031::dropIndex PHP Method

dropIndex() protected method

protected dropIndex ( Doctrine\DBAL\Schema\Schema $schema, string $tableName, string $indexName )
$schema Doctrine\DBAL\Schema\Schema
$tableName string
$indexName string
    protected function dropIndex(Schema $schema, $tableName, $indexName)
    {
        if (!$schema->hasTable($tableName)) {
            return false;
        }
        $table = $schema->getTable($tableName);
        if ($table->hasIndex($indexName)) {
            $table->dropIndex($indexName);
            return true;
        }
        return false;
    }