- Issue created by @ggamba
- 🇸🇪Sweden Alsén
Hi, after deleting all instances in database and running the following in a hook_update():
$manager = \Drupal::entityDefinitionUpdateManager(); $field = $manager->getFieldStorageDefinition('date', 'bookable_calendar_opening') $manager->updateFieldStorageDefinition($field);
The table looks like this:
DESCRIBE `bookable_calendar_opening__date`; +------------------+------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +------------------+------------------+------+-----+---------+-------+ | bundle | varchar(128) | NO | MUL | | | | deleted | tinyint(4) | NO | PRI | 0 | | | entity_id | int(10) unsigned | NO | PRI | NULL | | | revision_id | int(10) unsigned | NO | MUL | NULL | | | langcode | varchar(32) | NO | PRI | | | | delta | int(10) unsigned | NO | PRI | NULL | | | date_value | int(11) | NO | MUL | NULL | | | date_end_value | int(11) | NO | MUL | NULL | | | date_duration | mediumint(9) | YES | | NULL | | | date_rrule | int(11) | YES | MUL | NULL | | | date_rrule_index | int(11) | YES | MUL | NULL | | | date_timezone | varchar(32) | YES | | NULL | | +------------------+------------------+------+-----+---------+-------+ 12 rows in set (0.021 sec)