function db_drop_field

Drops a field.

Parameters

$table: The table to be altered.

$field: The field to be dropped.

Related topics

12 calls to db_drop_field()

File

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

Code

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