You are here

public function DatabaseSchemaInterface::indexExists in Schema 8

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.

File

src/DatabaseSchemaInterface.php, line 170
Contains Drupal\schema\DatabaseSchemaInterface.

Class

DatabaseSchemaInterface
This interface describes public methods of \Drupal\Core\Database\Schema.

Namespace

Drupal\schema

Code

public function indexExists($table, $name);