Skip to content

Modern Drupal will break on cache rebuild on huge DB changes #508

@zHelmet

Description

@zHelmet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions