1 schema.inc | protected DatabaseSchema_mysql::processField($field) |
Set database-engine specific properties for a field.
Parameters
$field: A field description array, as specified in the schema documentation.
File
- core/
includes/ database/ mysql/ schema.inc, line 200 - Database schema code for MySQL database servers.
Class
Code
protected function processField($field) {
if (!isset($field['size'])) {
$field['size'] = 'normal';
}
$map = $this->getFieldTypeMap();
$field['mysql_type'] = $map[$field['type'] . ':' . $field['size']];
if (isset($field['type']) && $field['type'] == 'serial') {
$field['auto_increment'] = TRUE;
}
return $field;
}