We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1692e0 commit 4bc5861Copy full SHA for 4bc5861
app/Jobs/UpdateSite.php
@@ -44,6 +44,16 @@ public function handle(): void
44
return;
45
}
46
47
+ // Do not make a major version update
48
+ $majorVersionCms = (int) $healthResult->cms_version;
49
+ $majorTargetVersion = (int) $this->targetVersion;
50
+
51
+ if ($majorVersionCms <> $majorTargetVersion) {
52
+ Log::info("No major update for Site: " . $this->site->id);
53
54
+ return;
55
+ }
56
57
// Store pre-update response code
58
$this->preUpdateCode = $this->site->getFrontendStatus();
59
0 commit comments