1.20.x schema.inc | abstract public DatabaseSchema::fieldSetDefault($table, $field, $default) |
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.
File
- includes/
database/ schema.inc, line 528 - Generic Database schema code.
Class
- DatabaseSchema
- Base class for database schema definitions.
Code
abstract public function fieldSetDefault($table, $field, $default);