You are here

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

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

Override DatabaseSchema::dropTable().

@status tested

Overrides DatabaseSchema::dropTable

File

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

Class

DatabaseSchema_sqlsrv

Code

public function dropTable($table) {
  if (!$this
    ->tableExists($table, TRUE)) {
    return FALSE;
  }
  $this->connection
    ->query_direct('DROP TABLE {' . $table . '}');
  fastcache::cache_clear_all('*', 'tableExists', TRUE);
  return TRUE;
}