db_create_table
- Versions
- 6
db_create_table(&$ret, $name, $table)- 7
db_create_table($name, $table)
Create 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
Code
includes/database/database.inc, line 2297
<?php
function db_create_table($name, $table) {
if (!db_table_exists($name)) {
return Database::getConnection()->schema()->createTable($name, $table);
}
}
?>Login or register to post comments 