{"record":{"id":"3b6dbbb08bd25dd8","repo":"windmill-labs/windmill","slug":"failed-to-run-deployed-migrations-e","errorCode":null,"errorMessage":"Failed to run deployed migrations: ${e}","messagePattern":"Failed to run deployed migrations: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/workspace/merge.ts","lineNumber":644,"sourceCode":"      )\n    );\n  } else {\n    log.info(\n      colors.yellow(\n        `Deployed ${successCount} item(s), ${colors.red(String(failCount) + \" failed\")} from ${workspaceFrom} to ${workspaceTo}.`\n      )\n    );\n  }\n\n  // 13. Deployed migration definitions don't touch the target schema until run;\n  // offer to run them on the target now (interactive only, like the push path).\n  if (deployedMigrations.length > 0) {\n    try {\n      await offerToRunNewMigrations(workspaceTo, deployedMigrations, {\n        yes: opts.yes,\n      });\n    } catch (e) {\n      log.warn(colors.yellow(`Failed to run deployed migrations: ${e}`));\n    }\n  }\n}\n\nexport { mergeWorkspaces };\n","sourceCodeStart":626,"sourceCodeEnd":650,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/commands/workspace/merge.ts#L626-L650","documentation":"Degradation near the end of `wmill workspace merge`: items including migration definitions were deployed, but the follow-up offerToRunNewMigrations on the target workspace threw (API error, canceled prompt, or migration execution failure). Deployment succeeded; only running the migrations on the target was skipped.","triggerScenarios":"Thrown at cli/src/commands/workspace/merge.ts:644 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the deployed migrations on the target workspace manually via the UI or CLI","Inspect the wrapped error `e` for the actual migration failure","Re-run the merge or use the migrations run command once the cause is fixed"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}