protected function processField($field) { if (!
isset($field['size'
])) { $field['size'
] = 'normal';
} // Set the correct database-engine specific datatype.
// In case one is already provided, force it to lowercase.
if (isset($field['pgsql_type'
])) { $field['pgsql_type'
] =
mb_strtolower($field['pgsql_type'
]);
} else { $map =
$this->
getFieldTypeMap();
$field['pgsql_type'
] =
$map[$field['type'
] . ':' .
$field['size'
]];
} if (!
empty($field['unsigned'
])) { // Unsigned data types are not supported in PostgreSQL 10. In MySQL,
// they are used to ensure a positive number is inserted and it also
// doubles the maximum integer size that can be stored in a field.
// The PostgreSQL schema in Drupal creates a check constraint
// to ensure that a value inserted is >= 0. To provide the extra
// integer capacity, here, we bump up the column field size.
if (!
isset($map)) {