-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add option to config-import to force installation with mismatched site UUID. #1625
Comments
I definately see the usefulness. Perhaps alexpott could chime in here and say if this is a horrible idea or not. It would have caveats in the description and confirmation. |
Paging @alexpott. Can you weigh in on whether this is a horrible idea? |
A --force on config-import, when importing everything, seems safe enough to me. You could also codify your workaround into a short script, and use cget to look up the site UUID in the source site. I think we can role this into Drush proper, although I'd still be interested to hear what @alexpott thinks. |
Lets consolidate discussion in the PR #1635 |
Summary
It is not possible to import a site configuration "over" a freshly installed site. This would be very useful during development and for use with automated testing when the database would not be necessary as no content is required (or desired).
Steps to Reproduce
drush site-install minimal
drush site-export
drush site-install minimal
drush site-import
Actual Results
The
site-import
command in step 5 fails with the following output:Proposed Resolution
After discussing with alexpott, I tested the following manual work-around and saw a successful import:
drush site-install minimal
drush site-export
system.site uuid
.drush site-install minimal
drush config-import
It would be fantastic if
config-import
would provide an option (--force?) that would include the functionality in steps 4 and 6 so that a configuration could be imported over a clean site. Is there a philosophical reason not to do this? If not, I would be interested in adding it. Is there an existing mechanism to retrieve a specific config value from the configuration exported to disk?The text was updated successfully, but these errors were encountered: