Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documented setup:update task. #911

Merged
merged 1 commit into from
Jan 5, 2017
Merged

Conversation

danepowell
Copy link
Contributor

In trying to solve #842, I thought I was being very clever by trying to run features-imports before database updates. But then I realized that this will cause nasty problems. I just thought I should document the reason here in case someone tries to get "smart" like me again in the future.

Basically, you should always run database updates before feature reverts or config imports. For instance, you might add a dependency on a new module to an existing config file. If that module isn't already installed before you try to import the config file, the import will fail. The only way to prevent this is to enable the module first via an update hook.

@grasmash grasmash merged commit 1f8c941 into acquia:8.x Jan 5, 2017
@danepowell danepowell deleted the feature/update-doc branch December 6, 2017 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants