abstract public function DatabaseSchema::fieldSetDefault in Drupal 7
Set the default value for a field.
Parameters
$table: The table to be altered.
$field: The field to be altered.
$default: Default value to be set. NULL for 'default NULL'.
Throws
DatabaseSchemaObjectDoesNotExistException If the specified table or field doesn't exist.
3 methods override DatabaseSchema::fieldSetDefault()
- DatabaseSchema_mysql::fieldSetDefault in includes/
database/ mysql/ schema.inc - Set the default value for a field.
- DatabaseSchema_pgsql::fieldSetDefault in includes/
database/ pgsql/ schema.inc - Set the default value for a field.
- DatabaseSchema_sqlite::fieldSetDefault in includes/
database/ sqlite/ schema.inc - Set the default value for a field.
File
- includes/
database/ schema.inc, line 534
Class
- DatabaseSchema
- Base class for database schema definitions.
Code
public abstract function fieldSetDefault($table, $field, $default);