mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 10:08:56 +02:00
First iteration of upgrade.
This commit is contained in:
+9
-1
@@ -33,6 +33,9 @@ class Mage_Console
|
||||
} else if ($this->_args[0] == 'install') {
|
||||
$this->_action = 'install';
|
||||
|
||||
} else if ($this->_args[0] == 'upgrade') {
|
||||
$this->_action = 'upgrade';
|
||||
|
||||
} else if ($this->_args[0] == 'version') {
|
||||
$this->_action = 'version';
|
||||
|
||||
@@ -102,7 +105,7 @@ class Mage_Console
|
||||
|
||||
// Logging
|
||||
$showGrettings = true;
|
||||
if (in_array($this->getAction(), array('install', 'version'))) {
|
||||
if (in_array($this->getAction(), array('install', 'upgrade', 'version'))) {
|
||||
self::$_logEnabled = false;
|
||||
$showGrettings = false;
|
||||
} else {
|
||||
@@ -145,6 +148,11 @@ class Mage_Console
|
||||
$task->run();
|
||||
break;
|
||||
|
||||
case 'upgrade';
|
||||
$task = new Mage_Task_Upgrade;
|
||||
$task->run();
|
||||
break;
|
||||
|
||||
case 'init';
|
||||
$task = new Mage_Task_Init;
|
||||
$task->run();
|
||||
|
||||
Reference in New Issue
Block a user