db_drop_field

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

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

Версии
6
db_drop_field(&$ret, $table, $field)

Удаляет поле в таблице БД.

Параметры

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

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

$field Имя удаляемого поля.

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

▾ 3 функции вызывают db_drop_field()

locale_update_6001 in modules/locale/locale.install
Change locale column to language. The language column is added by update_fix_d6_requirements() in update.php to avoid a large number of error messages from update.php. All we need to do here is copy locale to language and then drop locale.
system_update_6008 in modules/system/system.install
Add info files to themes. The info and owner columns are added by update_fix_d6_requirements() in update.php to avoid a large number of error messages from update.php. All we need to do here is copy description to owner and then drop description.
system_update_6036 in modules/system/system.install
Change the search schema and indexing.

Код

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

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