function paragraphs_update_8014 in Paragraphs 8
Update the status field.
File
- ./
paragraphs.install, line 272 - Installation hooks for Paragraphs module.
Code
function paragraphs_update_8014() {
// The status field was promoted to an entity key in paragraphs_update_8013(),
// which makes it NOT NULL in the default SQL storage, which means its storage
// definition needs to be updated as well.
$entity_definition_update_manager = \Drupal::service('entity.definition_update_manager');
$entity_definition_update_manager
->updateFieldStorageDefinition($entity_definition_update_manager
->getFieldStorageDefinition('status', 'paragraph'));
}