@ -131,6 +124,15 @@ class UpgradeCommand extends CommonCommand
}
}
$this->setConfigurationPath($configurationPath);
$this->setConfigurationPath($configurationPath);
// $_configuration['password_encryption'] must exists
if (isset($_configuration['password_encryption'])) {
$output->writeln("<comment> \$_configuration[password_encryption] value found: </comment><info>".$_configuration['password_encryption']."</info>");
} else {
$output->writeln("<error>\$_configuration['password_encryption'] not found. The key 'password_encryption' or the variable '\$userPasswordCrypted' must exists in the configuration.php file </error>");
return 0;
}
// In order to use Doctrine migrations
// In order to use Doctrine migrations
// Setting configuration variable in order to get the doctrine version:
// Setting configuration variable in order to get the doctrine version:
@ -318,7 +320,6 @@ class UpgradeCommand extends CommonCommand
if ($version == '1.10.0') {
if ($version == '1.10.0') {
$this->removeUnUsedFiles($output, $path);
$this->removeUnUsedFiles($output, $path);
$this->copyConfigFilesToNewLocation($output);
$this->copyConfigFilesToNewLocation($output);
}
}
}
}
@ -338,6 +339,8 @@ class UpgradeCommand extends CommonCommand