By mcdruid on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x
Introduced in version:
7.90
Issue links:
Description:
See \FieldSqlStorageTestCase::testFieldSqlSchemaForEntityWithStringIdentifier for an example of programmatically adding a field with a string ID:
$field_name = 'string_id_example';
$field = array('field_name' => $field_name, 'type' => 'text', 'settings' => array('max_length' => 255), 'entity_id_type' => 'string');
field_create_field($field);
Impacts:
Module developers