function db_drop_table

7.x database.inc db_drop_table($table)
6.x database.pgsql.inc db_drop_table(&$ret, $table)
6.x database.mysql-common.inc db_drop_table(&$ret, $table)

Drops a table.

Parameters

$table: The table to be dropped.

Related topics

24 calls to db_drop_table()
block_update_7006 in drupal-7.x/modules/block/block.install
Recreates cache_block table.
DatabaseTestCase::installTables in drupal-7.x/modules/simpletest/tests/database_test.test
Set up several tables needed by a certain test.
DrupalWebTestCase::tearDown in drupal-7.x/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-7.x/includes/common.inc
Removes all tables defined in a module's hook_schema().
field_sql_storage_field_storage_purge_field in drupal-7.x/modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_purge_field().

... See full list

File

drupal-7.x/includes/database/database.inc, line 2816
Core systems for the database layer.

Code

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