function db_drop_field

7.x database.inc db_drop_field($table, $field)
6.x database.pgsql.inc db_drop_field(&$ret, $table, $field)
6.x database.mysql-common.inc db_drop_field(&$ret, $table, $field)
8.x database.inc db_drop_field($table, $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 drupal/modules/block/block.install
Update database to match Drupal 7 schema.
comment_update_7006 in drupal/modules/comment/comment.install
Migrate data from the comment field to field storage.
field_sql_storage_update_7001 in drupal/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 drupal/modules/filter/filter.install
Integrate text formats with the user permissions system.
node_update_7006 in drupal/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.

... See full list

File

drupal/includes/database/database.inc, line 2888
Core systems for the database layer.

Code

function db_drop_field($table, $field) {
  return Database::getConnection()->schema()->dropField($table, $field);
}