mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix latest merge
This commit is contained in:
@@ -66,12 +66,12 @@ class module_console_systemUpgrade extends Command
|
|||||||
if ($continue == 'y') {
|
if ($continue == 'y') {
|
||||||
$output->write('<info>Upgrading...</info>', true);
|
$output->write('<info>Upgrading...</info>', true);
|
||||||
|
|
||||||
if (count(User_Adapter::get_wrong_email_users($this->container)) > 0) {
|
try {
|
||||||
|
$upgrader = new Setup_Upgrade($this->container, $input->getOption('force'));
|
||||||
|
} catch (\Exception_Setup_FixBadEmailAddresses $e) {
|
||||||
return $output->writeln(sprintf('<error>You have to fix your database before upgrade with the system:mailCheck command </error>'));
|
return $output->writeln(sprintf('<error>You have to fix your database before upgrade with the system:mailCheck command </error>'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$upgrader = new Setup_Upgrade($this->container, $input->getOption('force'));
|
|
||||||
|
|
||||||
$queries = $this->getService('phraseanet.appbox')->forceUpgrade($upgrader, $this->container);
|
$queries = $this->getService('phraseanet.appbox')->forceUpgrade($upgrader, $this->container);
|
||||||
|
|
||||||
if ($input->getOption('dump')) {
|
if ($input->getOption('dump')) {
|
||||||
|
Reference in New Issue
Block a user