From 920d949bcc732e15f871bf9704d11ef096329f21 Mon Sep 17 00:00:00 2001 From: Rajab Natshah Date: Tue, 9 Jul 2019 17:13:07 +0300 Subject: [PATCH] Have a drush cache rebuild first before entity update or update database #15 --- scripts/update/varbase-updater.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/update/varbase-updater.sh b/scripts/update/varbase-updater.sh index 9db65d5..f8d9df5 100644 --- a/scripts/update/varbase-updater.sh +++ b/scripts/update/varbase-updater.sh @@ -276,6 +276,7 @@ elif [ "$answer" != "${answer#[YyUu]}" ] ; then echo -e "$(tput setaf 2)Updating the database for latest changes.$(tput sgr 0)"; echo -e "$(tput setaf 2)Updating the database for latest changes.$(tput sgr 0)" >> ${ERRORLOG}; + $DRUSH cache-rebuild --yes; $DRUSH entity-updates --yes; $DRUSH updb --yes --strict=0 1> >(tee -a ${ERRORLOG} >&1) 2> >(tee -a ${ERRORLOG} >&2); result="$?";