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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user