abstract public function DatabaseSchema::indexExists

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 drupal/includes/database/mysql/schema.inc
Checks if an index exists in the given table.
DatabaseSchema_pgsql::indexExists in drupal/includes/database/pgsql/schema.inc
Checks if an index exists in the given table.
DatabaseSchema_sqlite::indexExists in drupal/includes/database/sqlite/schema.inc
Checks if an index exists in the given table.

File

drupal/includes/database/schema.inc, line 492

Class

DatabaseSchema
Base class for database schema definitions.

Code

public abstract function indexExists($table, $name);