db_drop_index

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

Drop an index.

Parameters

$table The table to be altered.

$name The name of the index.

Related topics

▾ 14 functions call db_drop_index()

comment_update_7003 in modules/comment/comment.install
Improve indexes on the comment table.
comment_update_7007 in modules/comment/comment.install
Split {comment}.timestamp into {comment}.created and {comment}.changed.
field_sql_storage_field_storage_update_field in modules/field/modules/field_sql_storage/field_sql_storage.module
Implement hook_field_storage_update_field().
filter_update_7003 in modules/filter/filter.install
Remove hardcoded numeric deltas from all filters in core.
forum_update_7000 in modules/forum/forum.install
Add new index to forum table.
locale_update_7000 in modules/locale/locale.install
Add context field and allow longer location.
node_update_7002 in modules/node/node.install
Extend the node_promote_status index to include all fields required for the node page query.
search_update_7000 in modules/search/search.install
Replace unique keys in 'search_dataset' and 'search_index' by primary keys.
system_update_6049 in modules/system/system.install
Replace src index on the {url_alias} table with src, language.
system_update_7018 in modules/system/system.install
Shorten the {system}.type column and modify indexes.
system_update_7025 in modules/system/system.install
Improve indexes on the {url_alias} table.
system_update_7032 in modules/system/system.install
Alter field hostname to identifier in the {flood} table.
system_update_7042 in modules/system/system.install
Rename dst and src to source and alias.
update_fix_d7_requirements in includes/update.inc
Perform Drupal 6.x to 7.x updates that are required for update.php to function properly.

Code

includes/database/database.inc, line 2513

<?php
function db_drop_index($table, $name) {
  return Database::getConnection()->schema()->dropIndex($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.