From b7d423f70948a579f75f7fc8803fd6bca6a64d96 Mon Sep 17 00:00:00 2001 From: Zsolt Nagy Date: Fri, 19 Dec 2025 12:44:18 +0100 Subject: [PATCH 1/2] Add post-pull section for sql sanitization. --- .ddev/config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ddev/config.yaml b/.ddev/config.yaml index 3ae10704a..631b50c9e 100644 --- a/.ddev/config.yaml +++ b/.ddev/config.yaml @@ -284,3 +284,5 @@ corepack_enable: false hooks: post-import-db: - exec: drush sql:sanitize --yes + post-pull: + - exec: drush sql:sanitize --yes From ac1d914196435f110fa5d6d44651db3c696fae8a Mon Sep 17 00:00:00 2001 From: Zsolt Nagy Date: Wed, 7 Jan 2026 10:38:11 +0100 Subject: [PATCH 2/2] Add post-pull section to config.local.yaml.example too. --- .ddev/config.local.yaml.example | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.ddev/config.local.yaml.example b/.ddev/config.local.yaml.example index db98e60c8..4f740f79b 100644 --- a/.ddev/config.local.yaml.example +++ b/.ddev/config.local.yaml.example @@ -64,3 +64,19 @@ hooks: - exec: drush sql:sanitize --yes # Login as admin. - exec-host: ddev login + post-pull: + # Run DB updates. + - exec: drush updb + # Clear cache before config import. + - exec: drush cr + # Import config. + - exec: drush cim -y + # Reindex. + - exec: drush sapi-c + - exec: drush sapi-i + # Compile theme. + - exec-host: ddev robo theme:compile + # Get rid of sensitive user data. + - exec: drush sql:sanitize --yes + # Login as admin. + - exec-host: ddev login