You are here

function db_drop_table in Drupal 6

Same name in this branch
  1. 6 includes/database.mysql-common.inc \db_drop_table()
  2. 6 includes/database.pgsql.inc \db_drop_table()
Same name and namespace in other branches
  1. 8 core/includes/database.inc \db_drop_table()
  2. 7 includes/database/database.inc \db_drop_table()

Drop a table.

Parameters

$ret: Array to which query results will be added.

$table: The table to be dropped.

Related topics

2 calls to db_drop_table()
drupal_uninstall_schema in includes/common.inc
Remove all tables that a module defines in its hook_schema().
openid_update_6001 in modules/openid/openid.install
Bind associations to their providers.

File

includes/database.mysql-common.inc, line 269
Functions shared between mysql and mysqli database engines.

Code

function db_drop_table(&$ret, $table) {
  $ret[] = update_sql('DROP TABLE {' . $table . '}');
}