1 schema.inc abstract public DatabaseSchema::indexExists($table, $name)

Checks if an index exists in the given table.

Parameters

string $table: The name of the table in Backdrop (no prefixing).

string $name: The name of the index in Backdrop (no prefixing).

Return value

bool: TRUE if the given index exists, otherwise FALSE.

File

core/includes/database/schema.inc, line 508
Generic Database schema code.

Class

DatabaseSchema
Base class for database schema definitions.

Code

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