From c104b6116af9497c60992810973de2d7113ab415 Mon Sep 17 00:00:00 2001 From: Steve Wirt Date: Mon, 16 Sep 2024 17:38:57 -0400 Subject: [PATCH] Finish migration to harvest_runs. (#4286) --- modules/harvest/harvest.install | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/harvest/harvest.install b/modules/harvest/harvest.install index a9ce43168d..64c25a4134 100644 --- a/modules/harvest/harvest.install +++ b/modules/harvest/harvest.install @@ -88,3 +88,15 @@ function harvest_update_8007(&$sandbox) { $harvest_utility = \Drupal::service('dkan.harvest.utility'); $harvest_utility->harvestHashUpdate(); } + +/** + * Move entries from harvest_[ID]_runs to harvest_runs. + * + * This finishes the process started by harvest_update_8007. +*/ +function harvest_update_8008(&$sandbox) { + /** @var \Drupal\harvest\HarvestUtility $harvest_utility */ + $harvest_utility = \Drupal::service('dkan.harvest.utility'); + $harvest_utility->harvestRunsUpdate(); + return 'Harvest runs coalesced into table harvest_runs.'; +}