function db_drop_index in Drupal 6
Same name in this branch
- 6 includes/database.mysql-common.inc \db_drop_index()
- 6 includes/database.pgsql.inc \db_drop_index()
Same name and namespace in other branches
- 8 core/includes/database.inc \db_drop_index()
- 7 includes/database/database.inc \db_drop_index()
Drop an index.
Parameters
$ret: Array to which query results will be added.
$table: The table to be altered.
$name: The name of the index.
Related topics
10 calls to db_drop_index()
- locale_update_6004 in modules/
locale/ locale.install - Fix remaining inconsistent indexes.
- system_update_6019 in modules/
system/ system.install - Reconcile small differences in the previous, manually created mysql and pgsql schemas so they are the same and can be represented by a single schema structure.
- system_update_6022 in modules/
system/ system.install - Update files tables to associate files to a uid by default instead of a nid. Rename file_revisions to upload since it should only be used by the upload module used by upload to link files to nodes.
- system_update_6023 in modules/
system/ system.install - system_update_6025 in modules/
system/ system.install - Increase the maximum length of node titles from 128 to 255.
File
- includes/
database.mysql-common.inc, line 456 - Functions shared between mysql and mysqli database engines.
Code
function db_drop_index(&$ret, $table, $name) {
$ret[] = update_sql('ALTER TABLE {' . $table . '} DROP INDEX ' . $name);
}