You are here

function db_drop_field in Drupal 6

Same name in this branch
  1. 6 includes/database.mysql-common.inc \db_drop_field()
  2. 6 includes/database.pgsql.inc \db_drop_field()
Same name and namespace in other branches
  1. 8 core/includes/database.inc \db_drop_field()
  2. 7 includes/database/database.inc \db_drop_field()

Drop a field.

Parameters

$ret: Array to which query results will be added.

$table: The table to be altered.

$field: The field to be dropped.

Related topics

4 calls to db_drop_field()
db_change_field in includes/database.pgsql.inc
Change a field definition.
locale_update_6001 in modules/locale/locale.install
Change locale column to language. The language column is added by update_fix_d6_requirements() in update.php to avoid a large number of error messages from update.php. All we need to do here is copy locale to language and then drop locale.
system_update_6008 in modules/system/system.install
Add info files to themes. The info and owner columns are added by update_fix_d6_requirements() in update.php to avoid a large number of error messages from update.php. All we need to do here is copy description to owner and then drop description.
system_update_6036 in modules/system/system.install
Change the search schema and indexing.

File

includes/database.pgsql.inc, line 700
Database interface code for PostgreSQL database servers.

Code

function db_drop_field(&$ret, $table, $field) {
  $ret[] = update_sql('ALTER TABLE {' . $table . '} DROP COLUMN ' . $field);
}