db_drop_table

  1. drupal
    1. 6 database.mysql-common.inc
    2. 6 database.pgsql.inc
    3. 8
    4. 7
Versions
6 db_drop_table(&$ret, $table)
7 – 8 db_drop_table($table)

Drops a table.

Parameters

$table The table to be dropped.

Related topics

▾ 26 functions call db_drop_table()

BasicUpgradePath::testFailedUpgrade in modules/simpletest/tests/upgrade/upgrade.test
Test a failed upgrade, and verify that the failure is reported.
block_update_7006 in modules/block/block.install
Recreates cache_block table.
DatabaseTestCase::installTables in modules/simpletest/tests/database_test.test
Set up several tables needed by a certain test.
DrupalWebTestCase::tearDown in 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 includes/common.inc
Remove all tables that a module defines in its hook_schema().
field_sql_storage_field_storage_purge_field in modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_purge_field().
field_sql_storage_field_storage_update_field in modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_update_field().
field_sql_storage_update_7001 in modules/field/modules/field_sql_storage/field_sql_storage.install
Remove the field_config_entity_type table and store 'entity_type' strings.
filter_update_7009 in modules/filter/filter.install
Converts fields that store serialized variables from text to blob.
hook_field_storage_purge_field in modules/field/field.api.php
Remove field storage information when a field record is purged.
hook_field_storage_update_field in modules/field/field.api.php
Update the storage information for a field.
node_update_7003 in modules/node/node.install
Remove the node_counter if the statistics module is uninstalled.
SchemaTestCase::assertFieldAdditionRemoval in modules/simpletest/tests/schema.test
Assert that a given field can be added and removed from a table.
SchemaTestCase::testSchema in modules/simpletest/tests/schema.test
simpletest_clean_database in modules/simpletest/simpletest.module
Removed prefixed tables from the database that are left over from crashed tests.
system_update_7007 in modules/system/system.install
Convert to new method of storing permissions.
system_update_7044 in modules/system/system.install
Drop the actions_aid table.
system_update_7054 in modules/system/system.install
Remove {cache_*}.headers columns.
system_update_7060 in modules/system/system.install
Create fields in preparation for migrating upload.module to file.module.
system_update_7061 in modules/system/system.install
Migrate upload.module data to the newly created file field.
tablesort_example_uninstall in examples/tablesort_example/tablesort_example.install
Implements hook_uninstall().
taxonomy_update_7005 in modules/taxonomy/taxonomy.install
Migrate {taxonomy_term_node} table to field storage.
update_fix_d7_requirements in includes/update.inc
Perform Drupal 6.x to 7.x updates that are required for update.php to function properly.
update_update_7001 in modules/update/update.install
Recreates cache_update table.
UpgradePathTestCase::tearDown in modules/simpletest/tests/upgrade/upgrade.test
Override of DrupalWebTestCase::tearDown() specialized for upgrade testing.
_update_7000_field_delete_field in modules/field/field.install
Utility function: delete a field stored in SQL storage directly from the database.

Code

includes/database/database.inc, line 2784

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