db_drop_field

Versions
6
db_drop_field(&$ret, $table, $field)
7
db_drop_field($table, $field)

Drop a field.

Parameters

$table The table to be altered.

$field The field to be dropped.

Related topics

▾ 12 functions call db_drop_field()

filter_update_7004 in modules/filter/filter.install
Move filter settings storage into {filter} table.
filter_update_7005 in modules/filter/filter.install
Integrate text formats with the user permissions system.
node_update_7006 in modules/node/node.install
Convert body and teaser from node properties to fields, and migrate status/comment/promote and sticky columns to the {node_revision} table.
node_update_7007 in modules/node/node.install
Remove column min_word_count.
system_update_7005 in modules/system/system.install
Remove throttle columns and variables.
system_update_7008 in modules/system/system.install
Use the poll_choice primary key to record votes in poll_votes rather than the choice order. Rename chorder to weight.
system_update_7042 in modules/system/system.install
Rename dst and src to source and alias.
taxonomy_update_7003 in modules/taxonomy/taxonomy.install
Remove the related terms setting from vocabularies.
taxonomy_update_7004 in modules/taxonomy/taxonomy.install
Move taxonomy vocabulary associations for nodes to fields and field instances.
trigger_update_7000 in modules/trigger/trigger.install
Adds operation names to the hook names and drops the "op" field.
user_update_7001 in modules/user/user.install
user_update_7004 in modules/user/user.install
Add the user's pictures to the {file} table and make them managed files.

Code

includes/database/database.inc, line 2413

<?php
function db_drop_field($table, $field) {
  return Database::getConnection()->schema()->dropField($table, $field);
}
?>
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.