public function Scheme::TableDrop in Drupal driver for SQL Server and SQL Azure 8.2
Drop a table.
Parameters
string $table: Name of the table to drop.
Return value
bool
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Scheme.php, line 275
Class
Namespace
Drupal\Driver\Database\sqlsrvCode
public function TableDrop($table) {
if (!$this
->TableExists($table, true)) {
return false;
}
$this->cnn
->query_execute("DROP TABLE [{$table}]");
$this->cnn
->Cache('sqlsrv-table-exists')
->Clear($table);
return true;
}