Update hooks showing as pending and they run without error but do not actually run and continue to always show as pending
- drupal module update hooks listed but never run shown again
- drupal updates dependencies always pending
- modern drupal 8 9 10 showing update hooks that need to be run but never running them but never showing an error either
So here is what’s causing it: As long as the group module is not enabled, this just prevents any of the related update hooks from being run.
/**
* Implements hook_update_dependencies().
*
* - Make group status column filling run before hide revision field update.
*/
function nichq_community_update_dependencies() {
$dependencies = [];
// Run our update after group adds status column.
$dependencies['nichq_community'][8017] = [
'group' => 8092,
];
// Run hide revision field after our update.
$dependencies['hide_revision_field'][8202] = [
'nichq_community' => 8017,
];
return $dependencies;
}