function db_drop_table

Drops a table.

Parameters

$table: The table to be dropped.

Related topics

25 calls to db_drop_table()
BasicUpgradePath::testFailedUpgrade in drupal/modules/simpletest/tests/upgrade/upgrade.test
Test a failed upgrade, and verify that the failure is reported.
block_update_7006 in drupal/modules/block/block.install
Recreates cache_block table.
DatabaseTestCase::installTables in drupal/modules/simpletest/tests/database_test.test
Set up several tables needed by a certain test.
DrupalWebTestCase::tearDown in drupal/modules/simpletest/drupal_web_test_case.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
drupal_uninstall_schema in drupal/includes/common.inc
Removes all tables defined in a module's hook_schema().

... See full list

File

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

Code

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