Merge branch 'hotfix/5.6.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.2

This commit is contained in:
yuri
2019-05-01 11:36:53 +03:00
2 changed files with 5 additions and 1 deletions
@@ -61,6 +61,8 @@ abstract class Base
protected $packagePostfix = 'z';
protected $scriptParams = [];
/**
* Directory name of files in a package
*/
@@ -291,7 +293,7 @@ abstract class Base
$script = new $scriptName();
try {
$script->run($this->getContainer());
$script->run($this->getContainer(), $this->scriptParams);
} catch (\Exception $e) {
$this->throwErrorAndRemovePackage($e->getMessage());
}
@@ -39,6 +39,8 @@ class Install extends \Espo\Core\Upgrades\Actions\Base\Install
{
$this->findExtension();
if (!$this->isNew()) {
$this->scriptParams['isUpgrade'] = true;
$this->compareVersion();
$this->uninstallExtension();
$this->deleteExtension();