You are here

public function DatabaseSchema_sqlsrv::dropTable in Drupal driver for SQL Server and SQL Azure 7

Same name and namespace in other branches
  1. 7.3 sqlsrv/schema.inc \DatabaseSchema_sqlsrv::dropTable()
  2. 7.2 sqlsrv/schema.inc \DatabaseSchema_sqlsrv::dropTable()

Override DatabaseSchema::dropTable().

@status tested

Overrides DatabaseSchema::dropTable

File

sqlsrv/schema.inc, line 431
Database schema code for Microsoft SQL Server database servers.

Class

DatabaseSchema_sqlsrv

Code

public function dropTable($table) {
  if (!$this
    ->tableExists($table)) {
    return FALSE;
  }
  $this->connection
    ->query('DROP TABLE {' . $table . '}');
  return TRUE;
}