Created
August 5, 2020 17:39
-
-
Save d70rr3s/f35ce21fc0820c2512659fdc0f49a714 to your computer and use it in GitHub Desktop.
Reset a Drupal post-update using Drush
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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