1.16.x database.inc db_create_table($name, $table)
1.18.x database.inc db_create_table($name, $table)
1.17.x database.inc db_create_table($name, $table)

Creates a new table from a Backdrop table definition.

Parameters

$name: The name of the table to create.

$table: A Schema API table definition array.

Related topics

File

includes/database/database.inc, line 2920
Core systems for the database layer.

Code

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