function db_drop_index

Drops an index.

Parameters

$table: The table to be altered.

$name: The name of the index.

Related topics

12 calls to db_drop_index()
comment_update_8000 in drupal/core/modules/comment/comment.install
Renames {comment}.language to {comment}.langcode.
comment_update_8002 in drupal/core/modules/comment/comment.install
Make *id fields unsigned.
dblog_update_8001 in drupal/core/modules/dblog/dblog.install
Make *id fields unsigned.
field_sql_storage_field_storage_update_field in drupal/core/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_update_field().
field_sql_storage_update_8000 in drupal/core/modules/field_sql_storage/field_sql_storage.install
Renames the 'language' column to 'langcode' in field data tables.

... See full list

File

drupal/core/includes/database.inc, line 825
Core systems for the database layer.

Code

function db_drop_index($table, $name) {
  return Database::getConnection()
    ->schema()
    ->dropIndex($table, $name);
}