From 6fe2de0f57ffc351a5ded974c5f08feb8e5cdfc0 Mon Sep 17 00:00:00 2001 From: Steve Wirt Date: Fri, 13 Sep 2024 14:17:37 -0400 Subject: [PATCH] DKAN-4285 Finish migration to harvest_runs. --- 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.'; +}