Forked from crittermike/gist:7b654d3d686a4e434eda
Last active
August 25, 2023 16:53
-
-
Save bsingr/e3ff80534e9e4f7d50ba6b240e932c80 to your computer and use it in GitHub Desktop.
Run a single specific Drupal update hook using Drush
This file contains hidden or 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 "module_load_install('MYMODULE'); MYMODULE_update_NUMBER();" | |
# or | |
drush php:cli | |
require 'core/modules/taxonomy/taxonomy.post_update.php'; | |
taxonomy_post_update_add_unpublished_nodes_to_taxonomy_index($sandbox); |
in D9: drush php-eval "\Drupal::moduleHandler()->loadInclude('MYMODULE', 'install'); MYMODULE_update_NUMBER();"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see the
module.install
file to get the number