Skip to content

Instantly share code, notes, and snippets.

@erighetto
Created February 10, 2020 19:14
Show Gist options
  • Save erighetto/88d00d7cc4e39e1c6f0b3860cfbef7d4 to your computer and use it in GitHub Desktop.
Save erighetto/88d00d7cc4e39e1c6f0b3860cfbef7d4 to your computer and use it in GitHub Desktop.
<?php
$entities = array_keys(\Drupal::entityTypeManager()->getDefinitions());
sort($entities);
foreach ($entities as $entity) {
$current_field_storage_definitions = \Drupal::entityManager()->getFieldStorageDefinitions($entity);
\Drupal::service('entity.last_installed_schema.repository')
->setLastInstalledFieldStorageDefinitions($entity, $current_field_storage_definitions);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment