| 7 database.inc | db_index_exists($table, $name) |
| 8 database.inc | db_index_exists($table, $name) |
Checks if an index exists in the given table.
Parameters
$table: The name of the table in drupal (no prefixing).
$name: The name of the index in drupal (no prefixing).
Return value
TRUE if the given index exists, otherwise FALSE.
Related topics
6 calls to db_index_exists()
File
- includes/
database/ database.inc, line 2715 - Core systems for the database layer.
Code
function db_index_exists($table, $name) {
return Database::getConnection()->schema()->indexExists($table, $name);
}
Login or register to post comments