function db_field_set_no_default
7.x database.inc | db_field_set_no_default($table, $field) |
6.x database.pgsql.inc | db_field_set_no_default(&$ret, $table, $field) |
6.x database.mysql-common.inc | db_field_set_no_default(&$ret, $table, $field) |
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 drupal-6.x/
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
- drupal-6.x/
includes/ database.pgsql.inc, line 737 - Database interface code for PostgreSQL database servers.
Code
function db_field_set_no_default(&$ret, $table, $field) {
$ret[] = update_sql('ALTER TABLE {' . $table . '} ALTER COLUMN ' . $field . ' DROP DEFAULT');
}