public function Scheme::IndexDrop in Drupal driver for SQL Server and SQL Azure 8.2
Drop an index, nothing to to if the index does not exists.
Parameters
string $table: Name of the table.
string $index: Name of the index.
Return value
void
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Scheme.php, line 96
Class
Namespace
Drupal\Driver\Database\sqlsrvCode
public function IndexDrop($table, $index) {
if (!$this
->IndexExists($table, $index)) {
// Nothing to do....
return;
}
$this->cnn
->query_execute("DROP INDEX {$index} ON {$table}");
}