1 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

core/includes/database/schema.inc, line 470
Generic Database schema code.

Class

DatabaseSchema
Base class for database schema definitions.

Code

abstract public function fieldSetDefault($table, $field, $default);