db_table_exists

  1. drupal
    1. drupal6 database.mysql.inc
    2. drupal6 database.mysqli.inc
    3. drupal6 database.pgsql.inc
    4. drupal7
Versionen
drupal6 – drupal7 db_table_exists($table)

Check if a table exists.

Verwandte Themen

▾ 24 functions call db_table_exists()

blogapi_update_6001 in modules/blogapi/blogapi.install
Add blogapi_files table to enable size restriction for BlogAPI file uploads.
DatabaseRegressionTestCase::testDBTableExists in modules/simpletest/tests/database_test.test
Test the db_table_exists() function.
DatabaseTemporaryQueryTestCase::testTemporaryQuery in modules/simpletest/tests/database_test.test
Confirm that temporary tables work and are limited to one request.
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().
field_sql_storage_schema in modules/field/modules/field_sql_storage/field_sql_storage.install
Implementation of hook_schema().
filter_admin_delete_submit in modules/filter/filter.admin.inc
Process filter delete form submission.
SchemaTestCase::testSchema in modules/simpletest/tests/schema.test
system_update_6019 in modules/system/system.install
Reconcile small differences in the previous, manually created mysql and pgsql schemas so they are the same and can be represented by a single schema structure.
system_update_6030 in modules/system/system.install
Add the tables required by actions.inc.
system_update_6032 in modules/system/system.install
profile_fields.name used to be nullable but is part of a unique key and so shouldn't be.
system_update_6033 in modules/system/system.install
Change node_comment_statistics to be not autoincrement.
system_update_6036 in modules/system/system.install
Change the search schema and indexing.
system_update_6038 in modules/system/system.install
Ensure that "Account" is not used as a Profile category.
system_update_6040 in modules/system/system.install
Add a weight column to the upload table.
system_update_6041 in modules/system/system.install
Change forum vocabulary not to be required by default and set the weight of the forum.module 1 higher than the taxonomy.module.
system_update_6043 in modules/system/system.install
Update table indices to make them more rational and useful.
system_update_6044 in modules/system/system.install
RC1 to RC2 index cleanup.
system_update_7008 in modules/system/system.install
Use the poll_choice primary key to record votes in poll_votes rather than the choice order. Rename chorder to weight.
update_create_batch_table in ./update.php
Create the batch table.
update_fix_d6_requirements in ./update.php
Perform Drupal 5.x to 6.x updates that are required for update.php to function properly.
update_info_page in ./update.php
update_prepare_d7_bootstrap in ./update.php
Users who still have a Drupal 6 database (and are in the process of updating to Drupal 7) need extra help before a full bootstrap can be achieved. This function does the necessary preliminary work that allows the bootstrap to be successful.
upload_install in modules/upload/upload.install
Implementation of hook_install().

Code

includes/database/database.inc, line 2112

<?php
function db_table_exists($table) {
  return Database::getConnection()->schema()->tableExists($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