DatabaseSchema::fieldSetDefault
abstract public function DatabaseSchema::fieldSetDefault
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 463
- Generic Database schema code.
Class
Code
abstract public function fieldSetDefault($table, $field, $default);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!schema.inc/function/DatabaseSchema::fieldSetDefault/7.x