Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Conversation

@pavlosdan
Copy link
Contributor

@pavlosdan pavlosdan commented Oct 14, 2022

Motivation
In certain cases we want to run update hooks that need to happen after updatedb and config:import have ran. E.g to update content after new fields have been added to a content type. Or to update module configuration that do not use drupal's configuration api and as such their configuration is not captured by the config management system.

Proposed changes
Drush provides a hook we can implement to facilitate such changes which runs when invoking drush deploy or drush deploy:hook. See:

Alternatives considered
BLT's native "post-config-import" command.

  • Not every project is running BLT and customers adopting BLT may already be used to running their drush deploy hooks since that's a more prevalent Drupal tool in the community.

Testing steps

  • Implement a deploy hook as shown in the 2nd bullet point above.
  • Apply the patch from this PR.
  • Run blt drupal:update

Related issue: #4522

@mikemadison13
Copy link
Contributor

this request originally made in #4522

@danepowell danepowell added Enhancement A feature or feature request Minor change labels Nov 1, 2022
@danepowell
Copy link
Contributor

Thanks for the PR. Please fix the failing tests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Enhancement A feature or feature request Minor change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants