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 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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.