public function Schema::dropTable

Same name in this branch

Drop a table.

Parameters

$table: The table to be dropped.

Return value

TRUE if the table was successfully dropped, FALSE if there was no table by that name to begin with.

Overrides Schema::dropTable

1 call to Schema::dropTable()

File

drupal/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php, line 278
Definition of Drupal\Core\Database\Driver\sqlite\Schema

Class

Schema

Namespace

Drupal\Core\Database\Driver\sqlite

Code

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