db_drop_unique_key

Versions
6
db_drop_unique_key(&$ret, $table, $name)
7
db_drop_unique_key($table, $name)

Drop a unique key.

Parameters

$table The table to be altered.

$name The name of the key.

Related topics

▾ 3 functions call db_drop_unique_key()

filter_update_7003 in modules/filter/filter.install
Remove hardcoded numeric deltas from all filters in core.
search_update_7000 in modules/search/search.install
Replace unique keys in 'search_dataset' and 'search_index' by primary keys.
system_update_7042 in modules/system/system.install
Rename dst and src to source and alias.

Code

includes/database/database.inc, line 2487

<?php
function db_drop_unique_key($table, $name) {
  return Database::getConnection()->schema()->dropUniqueKey($table, $name);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.