function db_drop_field
Drops a field.
Parameters
$table: The table to be altered.
$field: The field to be dropped.
Related topics
19 calls to db_drop_field()
- block_update_7008 in modules/block/ block.install 
- Update database to match Drupal 7 schema.
- comment_update_7006 in modules/comment/ comment.install 
- Migrate data from the comment field to field storage.
- field_sql_storage_update_7001 in modules/field/ modules/ field_sql_storage/ field_sql_storage.install 
- Remove the field_config_entity_type table and store 'entity_type' strings.
- 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.
File
- 
              includes/database/ database.inc, line 2988 
Code
function db_drop_field($table, $field) {
  return Database::getConnection()->schema()
    ->dropField($table, $field);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
