function DatabaseSchema::dropField
Drop a field.
Parameters
$table: The table to be altered.
$field: The field to be dropped.
Return value
TRUE if the field was successfully dropped, FALSE if there was no field by that name to begin with.
3 methods override DatabaseSchema::dropField()
- DatabaseSchema_mysql::dropField in includes/
database/ mysql/ schema.inc - Drop a field.
- DatabaseSchema_pgsql::dropField in includes/
database/ pgsql/ schema.inc - Drop a field.
- DatabaseSchema_sqlite::dropField in includes/
database/ sqlite/ schema.inc - Drop a field.
File
-
includes/
database/ schema.inc, line 519
Class
- DatabaseSchema
- Base class for database schema definitions.
Code
public abstract function dropField($table, $field);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.