abstract public function DatabaseSchema::indexExists in Drupal 7
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.
3 methods override DatabaseSchema::indexExists()
- DatabaseSchema_mysql::indexExists in includes/
database/ mysql/ schema.inc - Checks if an index exists in the given table.
- DatabaseSchema_pgsql::indexExists in includes/
database/ pgsql/ schema.inc - Checks if an index exists in the given table.
- DatabaseSchema_sqlite::indexExists in includes/
database/ sqlite/ schema.inc - Checks if an index exists in the given table.
File
- includes/
database/ schema.inc, line 560
Class
- DatabaseSchema
- Base class for database schema definitions.
Code
public abstract function indexExists($table, $name);