1 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

File

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

Code

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