public function DatabaseSchema_sqlsrv::dropIndex in Drupal driver for SQL Server and SQL Azure 7
Same name and namespace in other branches
- 7.3 sqlsrv/schema.inc \DatabaseSchema_sqlsrv::dropIndex()
- 7.2 sqlsrv/schema.inc \DatabaseSchema_sqlsrv::dropIndex()
Override DatabaseSchema::dropIndex().
@status tested
Overrides DatabaseSchema::dropIndex
File
- sqlsrv/
schema.inc, line 944 - Database schema code for Microsoft SQL Server database servers.
Class
Code
public function dropIndex($table, $name) {
if (!$this
->indexExists($table, $name)) {
return FALSE;
}
$this->connection
->query('DROP INDEX ' . $name . '_idx ON [{' . $table . '}]');
return TRUE;
}