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

Checks if an index exists in the given table.

Parameters

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

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

Return value

TRUE if the given index exists, otherwise FALSE.:

File

includes/database/schema.inc, line 554
Generic Database schema code.

Class

DatabaseSchema
Base class for database schema definitions.

Code

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