db_drop_index

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/database.mysql-common.inc, строка 446

Версии
6
db_drop_index(&$ret, $table, $name)

Удаляет индекс в таблице БД.

Параметры

$ret Массив, в который добавляются результаты запроса.

$table Имя таблицы для изменения

$name Название индекса.

Связанные темы

▾ 9 функции вызывают 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.
system_update_6035 in modules/system/system.install
Change index on system table for better performance.
system_update_6036 in modules/system/system.install
Change the search schema and indexing.
system_update_6043 in modules/system/system.install
Update table indices to make them more rational and useful.
system_update_6049 in modules/system/system.install
Replace src index on the {url_alias} table with src, language.

Код

<?php
function db_drop_index(&$ret, $table, $name) {
  $ret[] = update_sql('ALTER TABLE {'. $table .'} DROP INDEX '. $name);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему