1 database.inc | db_add_index($table, $name, array $fields) |
Adds an index.
Parameters
string $table: The table to be altered.
string $name: The name of the index.
array $fields: An array of field names.
Return value
void:
Related topics
File
- core/
includes/ database/ database.inc, line 3246 - Core systems for the database layer.
Code
function db_add_index($table, $name, array $fields) {
Database::getConnection()->schema()->addIndex($table, $name, $fields);
}