db_drop_table

  1. drupal
    1. drupal6 database.mysql-common.inc
    2. drupal6 database.pgsql.inc
    3. drupal7
Versionen
drupal6 – drupal7 db_drop_table(&$ret, $table)

Drop a table.

Übergabeparameter

$ret Array to which query results will be added.

$table The table to be dropped.

Verwandte Themen

▾ 7 functions call db_drop_table()

DatabaseTestCase::installTables in modules/simpletest/tests/database_test.test
Set up several tables needed by a certain test.
drupal_uninstall_schema in includes/common.inc
Remove all tables that a module defines in its hook_schema().
node_update_7003 in modules/node/node.install
Remove the node_counter if the statistics module is uninstalled.
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.
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.

Code

includes/database/database.inc, line 2214

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

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen