diff --git a/upgrades/7.1.0-7.1.2/data.json b/upgrades/7.1.0-7.1.2/data.json new file mode 100644 index 0000000000..bdca4f6cfd --- /dev/null +++ b/upgrades/7.1.0-7.1.2/data.json @@ -0,0 +1,4 @@ +{ + "manifest": { + } +} \ No newline at end of file diff --git a/upgrades/7.1.0-7.1.2/scripts/BeforeUpgrade.php b/upgrades/7.1.0-7.1.2/scripts/BeforeUpgrade.php new file mode 100644 index 0000000000..94dd272a07 --- /dev/null +++ b/upgrades/7.1.0-7.1.2/scripts/BeforeUpgrade.php @@ -0,0 +1,47 @@ +runSteps(\$upgradeId, \$stepList);\r\n }"; + + if (strpos($contents, $needle) !== false) { + echo "\n\nPlease re-run upgrade command with -s parameter:\n"; + echo " php command.php upgrade -s\n\n"; + + throw new \Espo\Core\Exceptions\Error("Need -s parameter."); + } + } + } +} diff --git a/upgrades/7.1.1-7.1.2/data.json b/upgrades/7.1.1-7.1.2/data.json new file mode 100644 index 0000000000..bdca4f6cfd --- /dev/null +++ b/upgrades/7.1.1-7.1.2/data.json @@ -0,0 +1,4 @@ +{ + "manifest": { + } +} \ No newline at end of file diff --git a/upgrades/7.1.1-7.1.2/scripts/BeforeUpgrade.php b/upgrades/7.1.1-7.1.2/scripts/BeforeUpgrade.php new file mode 100644 index 0000000000..94dd272a07 --- /dev/null +++ b/upgrades/7.1.1-7.1.2/scripts/BeforeUpgrade.php @@ -0,0 +1,47 @@ +runSteps(\$upgradeId, \$stepList);\r\n }"; + + if (strpos($contents, $needle) !== false) { + echo "\n\nPlease re-run upgrade command with -s parameter:\n"; + echo " php command.php upgrade -s\n\n"; + + throw new \Espo\Core\Exceptions\Error("Need -s parameter."); + } + } + } +}