You are here

public function DatabaseSchemaInterface::fieldSetDefault in Schema 8

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

\Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table or field doesn't exist.

File

src/DatabaseSchemaInterface.php, line 144
Contains Drupal\schema\DatabaseSchemaInterface.

Class

DatabaseSchemaInterface
This interface describes public methods of \Drupal\Core\Database\Schema.

Namespace

Drupal\schema

Code

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