db_create_table

  1. drupal
    1. drupal6 database.inc
    2. drupal7
Versionen
drupal6 – drupal7 db_create_table(&$ret, $name, $table)

Create a new table from a Drupal table definition.

Übergabeparameter

$ret Array to which query results will be added.

$name The name of the table to create.

$table A Schema API table definition array.

Verwandte Themen

▾ 18 functions call db_create_table()

blogapi_update_6001 in modules/blogapi/blogapi.install
Add blogapi_files table to enable size restriction for BlogAPI file uploads.
book_update_6000 in modules/book/book.install
Drupal 5.x to 6.x update.
DatabaseTestCase::installTables in modules/simpletest/tests/database_test.test
Set up several tables needed by a certain test.
drupal_install_schema in includes/common.inc
Create all tables that a module defines in its hook_schema().
field_sql_storage_field_storage_create_field in modules/field/modules/field_sql_storage/field_sql_storage.module
Implementation of hook_field_storage_create_field().
locale_update_6000 in modules/locale/locale.install
{locales_meta} table became {languages}.
SchemaTestCase::testSchema in modules/simpletest/tests/schema.test
system_update_6020 in modules/system/system.install
Create the tables for the new menu system.
system_update_6021 in modules/system/system.install
Migrate the menu items from the old menu system to the new menu_links table.
system_update_6030 in modules/system/system.install
Add the tables required by actions.inc.
system_update_6036 in modules/system/system.install
Change the search schema and indexing.
system_update_7002 in modules/system/system.install
Add a table to store blocked IP addresses.
system_update_7006 in modules/system/system.install
Registry tables and drop the file key of the menu router, since it is no longer needed.
system_update_7007 in modules/system/system.install
Convert to new method of storing permissions.
system_update_7022 in modules/system/system.install
Add the queue tables.
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_fix_d7_requirements in ./update.php
Perform Drupal 6.x to 7.x updates that are required for update.php to function properly.

Code

includes/database/database.inc, line 2090

<?php
function db_create_table(&$ret, $name, $table) {
  return Database::getConnection()->schema()->createTable($ret, $name, $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