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) |
Drops a field.
Parameters
$table: The table to be altered.
$field: The field to be dropped.
Related topics
18 calls to db_drop_field()
- block_update_7008 in drupal-7.x/
modules/ block/ block.install - Update database to match Drupal 7 schema.
- comment_update_7006 in drupal-7.x/
modules/ comment/ comment.install - Migrate data from the comment field to field storage.
- field_sql_storage_update_7001 in drupal-7.x/
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-7.x/
modules/ filter/ filter.install - Integrate text formats with the user permissions system.
- node_update_7006 in drupal-7.x/
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
- drupal-7.x/
includes/ database/ database.inc, line 2853 - Core systems for the database layer.
Code
function db_drop_field($table, $field) {
return Database::getConnection()->schema()->dropField($table, $field);
}