function db_drop_unique_key

Drops a unique key.


$table: The table to be altered.

$name: The name of the key.

Related topics

6 calls to db_drop_unique_key()
aggregator_update_7003 in drupal/modules/aggregator/aggregator.install
Increase the length of {aggregator_feed}.url.
node_update_7013 in drupal/modules/node/node.install
Change {node}.vid default value from 0 to NULL to avoid deadlock issues on MySQL.
search_update_7000 in drupal/modules/search/search.install
Replace unique keys in 'search_dataset' and 'search_index' by primary keys.
system_update_7042 in drupal/modules/system/system.install
Upgrade the {url_alias} table and create a cache bin for path aliases.
system_update_7073 in drupal/modules/system/system.install
Add binary to {file_managed}, in case system_update_7034() was run without it.

... See full list


drupal/includes/database/, line 2985
Core systems for the database layer.


function db_drop_unique_key($table, $name) {
  return Database::getConnection()
    ->dropUniqueKey($table, $name);