abstract public function DatabaseSchema::fieldSetDefault

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 drupal/includes/database/mysql/schema.inc
Set the default value for a field.
DatabaseSchema_pgsql::fieldSetDefault in drupal/includes/database/pgsql/schema.inc
Set the default value for a field.
DatabaseSchema_sqlite::fieldSetDefault in drupal/includes/database/sqlite/schema.inc
Set the default value for a field.

File

drupal/includes/database/schema.inc, line 466

Class

DatabaseSchema
Base class for database schema definitions.

Code

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