Closed mglaman closed 2 years ago
The new updated docs from https://docs.lagoon.sh/using-lagoon-advanced/workflows/:
name: IF no Drupal installed & Pullrequest = Sync database from staging
command: |
if [[ -n ${LAGOON_PR_BASE_BRANCH} ]] && tables=$(drush sqlq 'show tables;') && [ -z "$tables" ]; then
drush -y sql-sync @staging default
fi
The following post-rollout hook deleted the database in production somehow, on one single deployment. No others after