abstract public 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 drupal/includes/database/mysql/schema.inc
Drop a field.
DatabaseSchema_pgsql::dropField in drupal/includes/database/pgsql/schema.inc
Drop a field.
DatabaseSchema_sqlite::dropField in drupal/includes/database/sqlite/schema.inc
Drop a field.

File

drupal/includes/database/schema.inc, line 451

Class

DatabaseSchema
Base class for database schema definitions.

Code

public abstract function dropField($table, $field);