upgrade cli check
This commit is contained in:
@@ -35,11 +35,22 @@ class BeforeUpgrade
|
||||
{
|
||||
$this->container = $container;
|
||||
|
||||
$this->processCheckCLI();
|
||||
|
||||
$this->processMyIsamCheck();
|
||||
|
||||
$this->processNextNumberAlterTable();
|
||||
}
|
||||
|
||||
protected function processCheckCLI()
|
||||
{
|
||||
$isCli = (substr(php_sapi_name(), 0, 3) == 'cli') ? true : false;
|
||||
|
||||
if (!$isCli) {
|
||||
throw new Error("This upgrade can be run only from CLI.");
|
||||
}
|
||||
}
|
||||
|
||||
protected function processMyIsamCheck()
|
||||
{
|
||||
$myisamTableList = $this->getMyIsamTableList();
|
||||
|
||||
Reference in New Issue
Block a user