Skip to content

EspoCRM – Open Source CRM Application

updgrade version fix

Yuriiaf8f8a6adb9e
diff --git a/application/Espo/Core/Console/Commands/Upgrade.php b/application/Espo/Core/Console/Commands/Upgrade.php
index a34140d6a9..5bdff1fe4d 100644
--- a/application/Espo/Core/Console/Commands/Upgrade.php
+++ b/application/Espo/Core/Console/Commands/Upgrade.php
@@ -531,9 +531,9 @@ class Upgrade implements Command
private function getCurrentVersion(): ?string
{
- $configData = include "data/config.php"; /** @phpstan-ignore-line */
-
- if (!$configData) {
+ if (file_exists("data/state.php")) {
+ $configData = include "data/state.php"; /** @phpstan-ignore-line */
+ } else {
return null;
}