When importing older reference DB which may have huge differences compared to new environment the drush cache rebuild will break the post release container and prevents deployments.
|
# Clear caches before doing anything else. |
Could we remove this breaking cache rebuild command and rely that there is either postinstall.command or postupgrade.afterCommand after importing db.
On huge changing DB the correct order to run commands would be https://www.drush.org/13.x/deploycommand/. It will prevent drupal accessing tables which may not be present yet etc.