You are here

public function Schema::_DropIndex in Drupal driver for SQL Server and SQL Azure 8

Drop an index, nothing to to if the index does not exists.

Parameters

mixed $table:

mixed $index:

Return value

void

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php, line 1702
Definition of Drupal\Driver\Database\sqlsrv\Schema

Class

Schema

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function _DropIndex($table, $index) {
  if (!$this
    ->_ExistsIndex($table, $index)) {

    // Nothing to do....
    return;
  }
  $table = $this->connection
    ->prefixTables('{' . $table . '}');
  $this->connection
    ->query_direct('DROP INDEX :index ON :table', array(
    ':index' => $index,
    ':table' => $table,
  ));
}