1 database.inc db_create_table($name, array $table)

Creates a new table from a Backdrop table definition.

Parameters

string $name: The name of the table to create.

array $table: A Schema API table definition array.

Related topics

File

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

Code

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