db_field_set_default(&$ret, $table, $field, $default)
drupal/includes/database/database.inc, line 2074
Set the default value for a field.
$ret Array to which query results will be added.
$table The table to be altered.
$field The field to be altered.
$default Default value to be set. NULL for 'default NULL'.
| Name | Description |
|---|---|
| Schema API | A Drupal schema definition is an array structure representing one or more tables and their related keys and indexes. A schema is defined by hook_schema(), which usually lives in a modulename.install file. |
function db_field_set_default(&$ret, $table, $field, $default) {
return Database::getActiveConnection()->schema()->fieldSetDefault($ret, $table, $field, $default);
}