upgrade action

This commit is contained in:
Yuri Kuznetsov
2014-04-08 16:59:43 +03:00
parent 1b848f2e4f
commit af050a63b8
2 changed files with 14 additions and 1 deletions

View File

@@ -23,7 +23,7 @@
namespace Espo\Controllers;
use \Espo\Core\Exceptions\Error,
\Espo\Core\Exceptions\Forbidden;
\Espo\Core\Exceptions\Forbidden;
class Admin extends \Espo\Core\Controllers\Base
{
@@ -54,6 +54,15 @@ class Admin extends \Espo\Core\Controllers\Base
return $scheduledJob->getAllNamesOnly();
}
public function actionUploadUpgradePackage()
{
throw new Error("Your EspoCRM version doesn't match for this upgrade package.");
return array(
'version' => '1.1',
);
}
}