function db_create_table

Creates a new table from a Drupal table definition.

Parameters

$name: The name of the table to create.

$table: A Schema API table definition array.

Related topics

24 calls to db_create_table()

File

drupal/core/includes/database.inc, line 589
Core systems for the database layer.

Code

function db_create_table($name, $table) {
  return Database::getConnection()
    ->schema()
    ->createTable($name, $table);
}