function DatabaseSchema::dropIndex

Drop an index.

Parameters

$table: The table to be altered.

$name: The name of the index.

Return value

TRUE if the index was successfully dropped, FALSE if there was no index by that name to begin with.

3 methods override DatabaseSchema::dropIndex()
DatabaseSchema_mysql::dropIndex in includes/database/mysql/schema.inc
Drop an index.
DatabaseSchema_pgsql::dropIndex in includes/database/pgsql/schema.inc
Drop an index.
DatabaseSchema_sqlite::dropIndex in includes/database/sqlite/schema.inc
Drop an index.

File

includes/database/schema.inc, line 649

Class

DatabaseSchema
Base class for database schema definitions.

Code

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

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