function db_drop_field in Drupal 7
Same name and namespace in other branches
- 8 core/includes/database.inc \db_drop_field()
- 6 includes/database.mysql-common.inc \db_drop_field()
- 6 includes/database.pgsql.inc \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 2978 - Core systems for the database layer.
Code
function db_drop_field($table, $field) {
return Database::getConnection()
->schema()
->dropField($table, $field);
}