function db_drop_index

Same name and namespace in other branches
  1. 6.x drupal-6.x/includes/database.pgsql.inc \db_drop_index()
  2. 6.x drupal-6.x/includes/database.mysql-common.inc \db_drop_index()

Drops an index.

Parameters

$table: The table to be altered.

$name: The name of the index.

Related topics

20 calls to db_drop_index()
block_update_7002 in drupal-7.x/modules/block/block.install
Rename {blocks} table to {block}, {blocks_roles} to {block_role} and {boxes} to {block_custom}.
comment_update_7003 in drupal-7.x/modules/comment/comment.install
Split {comment}.timestamp into 'created' and 'changed', improve indexing on {comment}.
comment_update_7008 in drupal-7.x/modules/comment/comment.install
Update database to match Drupal 7 schema.
contact_update_7003 in drupal-7.x/modules/contact/contact.install
Change the weight column to normal int.
field_sql_storage_field_storage_update_field in drupal-7.x/modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_update_field().

... See full list

Archivo

drupal-7.x/includes/database/database.inc, line 2952
Core systems for the database layer.

Código

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