function db_drop_index

8.x database.inc db_drop_index($table, $name)

Drops an index.

Parameters

$table: The table to be altered.

$name: The name of the index.

Related topics

9 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.
locale_update_8005 in drupal/core/modules/locale/locale.install
Update plural interface translations to new format.
node_update_8005 in drupal/core/modules/node/node.install
Make *id fields unsigned.

... 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);
}