You are here

function db_field_set_no_default in Drupal 6

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

Set a field to have no default value.

Parameters

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

$table: The table to be altered.

$field: The field to be altered.

Related topics

1 call to db_field_set_no_default()
system_update_6019 in modules/system/system.install
Reconcile small differences in the previous, manually created mysql and pgsql schemas so they are the same and can be represented by a single schema structure.

File

includes/database.mysql-common.inc, line 367
Functions shared between mysql and mysqli database engines.

Code

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