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()

File

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

Code

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