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

docs: added sql:sanitize to Drupal hook examples. #5737

Merged
merged 5 commits into from Feb 2, 2024

Conversation

karenmurky
Copy link
Contributor

The Issue

It would be nice to encourage database sanitizing when importing a database to a local environment.

How This PR Solves The Issue

Updated examples to include sql:sanitize to post-import-db hooks for Drupal 10 installations.
Changed example heading from Drupal 8 to Drupal 10 to demonstrate this is the current Drupal version.
Also updated commands to use their full name instead of the alias, for better visibility.

@karenmurky
Copy link
Contributor Author

Sorry, last commit message should say Use drupal10Hooks text for Drupal 9 install

Copy link
Member

@stasadev stasadev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Sorry, last commit message should say Use drupal10Hooks text for Drupal 9 install

Don't worry about it, we use GitHub squash for PRs, it will be one commit (PR title) in the end.

pkg/ddevapp/drupal.go Outdated Show resolved Hide resolved
@@ -143,24 +151,22 @@ hooks:
- exec: "drush cc all"
```

## Drupal 8 Example
## Drupal 10 Example
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, but isn't "Drupal 8 Example" still relevant for Drupal 8, and "Drupal 10 Example" might have its own section?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was command differences between Drupal 7 and Drupal 8 (eg: drush cc all to drush cr) but D8 onwards the commands are the same.

Drupal.org doesn't list Drupal 8 or 9 as current versions (D8 was end of life in 2021 and D9 was November 2023)
so it was just to keep with consistency with the Project.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, that sounds good.

Copy link

@rfay rfay merged commit 6e4997f into ddev:master Feb 2, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants