3
votes
Convert field from string_long to text_long
Here's the solution I came up with based on the example code provided by https://drupal.stackexchange.com/users/71454/miststudent2011. I had to adapt it a bit for this specific case:
/**
* Convert ...
1
vote
Accepted
How to change a custom entity field type - with revisions
In addition to updating the main table, you also need to update the revision table, so the following changes should be made:
$id_key = $entity_definition->getKey('id');
becomes
$id_key = $...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
entities × 86637 × 2668
8 × 1663
views × 1272
nodes × 1137
theming × 726
users × 472
database × 354
taxonomy-terms × 348
media × 290
rules × 243
commerce × 235
forms × 223
hooks × 220
6 × 188
ajax × 184
files × 180
datetime × 153
i18n-l10n × 128
javascript × 106
9 × 106
blocks × 99
tokens × 84
webforms × 81
display-suite × 79