db_add_index
- Versions
- 6
db_add_index(&$ret, $table, $name, $fields)- 7
db_add_index($table, $name, $fields)
Add an index.
Parameters
$table The table to be altered.
$name The name of the index.
$fields An array of field names.
Related topics
Code
includes/database/database.inc, line 2501
<?php
function db_add_index($table, $name, $fields) {
return Database::getConnection()->schema()->addIndex($table, $name, $fields);
}
?>Login or register to post comments 