function db_drop_table

Same name and namespace in other branches
  1. 6.x drupal-6.x/includes/database.pgsql.inc \db_drop_table()
  2. 6.x drupal-6.x/includes/database.mysql-common.inc \db_drop_table()

Drops a table.

Parameters

$table: The table to be dropped.

Related topics

24 calls to db_drop_table()
BasicUpgradePath::testFailedUpgrade in drupal-7.x/modules/simpletest/tests/upgrade/upgrade.test
Test a failed upgrade, and verify that the failure is reported.
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().

... See full list

Archivo

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

Código

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