diff --git a/core/modules/aggregator/aggregator.install b/core/modules/aggregator/aggregator.install index e236628..d6093d8 100644 --- a/core/modules/aggregator/aggregator.install +++ b/core/modules/aggregator/aggregator.install @@ -37,3 +37,16 @@ function aggregator_update_8001() { /** * @} End of "addtogroup updates-8.0.0-rc". */ + +/** + * Update schema. + */ +function aggregator_update_8002() { + $entity_type = \Drupal::entityTypeManager()->getStorage('feed')->getEntityType(); + \Drupal::service('system.entity_schema_updater')->createTables($entity_type); + \Drupal::service('system.entity_schema_updater')->addRevisionField($entity_type); + + $entity_type = \Drupal::entityTypeManager()->getStorage('item')->getEntityType(); + \Drupal::service('system.entity_schema_updater')->createTables($entity_type); + \Drupal::service('system.entity_schema_updater')->addRevisionField($entity_type); +} diff --git a/core/modules/contact/config/contact.install b/core/modules/contact/config/contact.install index e69de29..202140f 100644 --- a/core/modules/contact/config/contact.install +++ b/core/modules/contact/config/contact.install @@ -0,0 +1,10 @@ +getStorage('message')->getEntityType(); + \Drupal::service('system.entity_schema_updater')->createTables($entity_type); + \Drupal::service('system.entity_schema_updater')->addRevisionField($entity_type); +} diff --git a/core/modules/file/file.install b/core/modules/file/file.install index 05eedf0..4d2d47d 100644 --- a/core/modules/file/file.install +++ b/core/modules/file/file.install @@ -120,3 +120,12 @@ function file_requirements($phase) { return $requirements; } + +/** + * Update schema. + */ +function file_update_8003() { + $entity_type = \Drupal::entityTypeManager()->getStorage('file')->getEntityType(); + \Drupal::service('system.entity_schema_updater')->createTables($entity_type); + \Drupal::service('system.entity_schema_updater')->addRevisionField($entity_type); +} diff --git a/core/modules/menu_link_content/menu_link_content.install b/core/modules/menu_link_content/menu_link_content.install index 43c75ec..1aa0d2f 100644 --- a/core/modules/menu_link_content/menu_link_content.install +++ b/core/modules/menu_link_content/menu_link_content.install @@ -16,3 +16,12 @@ function menu_link_content_install() { // https://www.drupal.org/node/1965074 module_set_weight('menu_link_content', 1); } + +/** + * Update schema. + */ +function menu_link_content_update_8001() { + $entity_type = \Drupal::entityTypeManager()->getStorage('menu_link_content')->getEntityType(); + \Drupal::service('system.entity_schema_updater')->createTables($entity_type); + \Drupal::service('system.entity_schema_updater')->addRevisionField($entity_type); +} diff --git a/core/modules/shortcut/shortcut.install b/core/modules/shortcut/shortcut.install index 8df408f..5797d8d 100644 --- a/core/modules/shortcut/shortcut.install +++ b/core/modules/shortcut/shortcut.install @@ -67,3 +67,12 @@ function shortcut_uninstall() { \Drupal::configFactory()->getEditable('seven.settings')->clear('third_party_settings.shortcut')->save(TRUE); } } + +/** + * Update schema. + */ +function shortcut_update_8001() { + $entity_type = \Drupal::entityTypeManager()->getStorage('shortcut')->getEntityType(); + \Drupal::service('system.entity_schema_updater')->createTables($entity_type); + \Drupal::service('system.entity_schema_updater')->addRevisionField($entity_type); +} diff --git a/core/modules/system/src/EntitySchemaUpdater.php b/core/modules/system/src/EntitySchemaUpdater.php index 68cfcf1..2956372 100644 --- a/core/modules/system/src/EntitySchemaUpdater.php +++ b/core/modules/system/src/EntitySchemaUpdater.php @@ -32,4 +32,4 @@ public function addRevisionField(EntityTypeInterface $entity_type) { \Drupal::entityDefinitionUpdateManager() ->installFieldStorageDefinition($entity_type->getKey('revision'), $entity_type->id(), $entity_type->id(), $storage_definition); } -} \ No newline at end of file +} diff --git a/core/modules/taxonomy/config/taxonomy.install b/core/modules/taxonomy/config/taxonomy.install index e69de29..ca622d3 100644 --- a/core/modules/taxonomy/config/taxonomy.install +++ b/core/modules/taxonomy/config/taxonomy.install @@ -0,0 +1,10 @@ +getStorage('term')->getEntityType(); + \Drupal::service('system.entity_schema_updater')->createTables($entity_type); + \Drupal::service('system.entity_schema_updater')->addRevisionField($entity_type); +}