First iteration of upgrade.

This commit is contained in:
Andrs Montaez
2012-01-10 18:21:31 -02:00
parent f21f63456a
commit ff1efabaf4
5 changed files with 133 additions and 5 deletions
+9 -1
View File
@@ -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();