Flush cache before and after upgrade for self-hosts (#17800)

as per title
This commit is contained in:
Marie
2026-02-09 14:35:13 +01:00
committed by GitHub
parent 3216b634a3
commit 1edce5088c
2 changed files with 4 additions and 1 deletions
@@ -17,7 +17,10 @@ setup_and_migrate_db() {
yarn database:migrate:prod
fi
yarn command:prod cache:flush
yarn command:prod upgrade
yarn command:prod cache:flush
echo "Successfully migrated DB!"
}
@@ -135,7 +135,7 @@ export abstract class WorkspacesMigrationCommandRunner<
for (const [index, workspaceId] of workspaceIdsToProcess.entries()) {
this.logger.log(
`Running command on workspace ${workspaceId} ${index + 1}/${workspaceIdsToProcess.length}`,
`Upgrading workspace ${workspaceId} ${index + 1}/${workspaceIdsToProcess.length}`,
);
try {