Skip to content

Instantly share code, notes, and snippets.

@d70rr3s
Created August 5, 2020 17:39
Show Gist options
  • Save d70rr3s/f35ce21fc0820c2512659fdc0f49a714 to your computer and use it in GitHub Desktop.
Save d70rr3s/f35ce21fc0820c2512659fdc0f49a714 to your computer and use it in GitHub Desktop.
Reset a Drupal post-update using Drush
drush php:eval '$update_hook_name = "POST_UPDATE_NAME"; $key_value = \Drupal::keyValue('post_update'); $existing_updates = $key_value->get('existing_updates'); $index = array_search($update_hook_name,$existing_updates); unset($existing_updates[$index]); $key_value->set('existing_updates', $existing_updates);'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment