function db_drop_table

Drops a table.

Parameters

$table: The table to be dropped.

Related topics

18 calls to db_drop_table()
contact_update_8002 in drupal/core/modules/contact/contact.install
Drop the {contact} table.
DatabaseStorageExpirableTest::tearDown in drupal/core/modules/system/lib/Drupal/system/Tests/KeyValueStore/DatabaseStorageExpirableTest.php
Deletes created files, database tables, and reverts all environment changes.
DatabaseStorageTest::tearDown in drupal/core/modules/system/lib/Drupal/system/Tests/KeyValueStore/DatabaseStorageTest.php
Deletes created files, database tables, and reverts all environment changes.
DatabaseTestBase::installTables in drupal/core/modules/system/lib/Drupal/system/Tests/Database/DatabaseTestBase.php
Sets up several tables needed by a certain test.
drupal_uninstall_schema in drupal/core/includes/schema.inc
Removes all tables defined in a module's hook_schema().

... See full list

File

drupal/core/includes/database.inc, line 688
Core systems for the database layer.

Code

function db_drop_table($table) {
  return Database::getConnection()
    ->schema()
    ->dropTable($table);
}