Ver Fonte

Merge branch 'hotfix/V8-6162-correction-du-cron---critical-er'

Olivier Massot há 1 ano atrás
pai
commit
345adddfd9
3 ficheiros alterados com 3 adições e 6 exclusões
  1. 1 1
      .env
  2. 0 4
      env/.env.prod
  3. 2 1
      src/Commands/Doctrine/SchemaUpdateCommand.php

+ 1 - 1
.env

@@ -74,7 +74,7 @@ LOCK_DSN=semaphore
 ###< symfony/lock ###
 
 ###> symfony/mailer ###
-MAILER_DSN=smtp://localhost
+MAILER_DSN=smtp://localhost:25?verify_peer=false
 ###< symfony/mailer ###
 
 ###> bindfile populate buffer file

+ 0 - 4
env/.env.prod

@@ -34,7 +34,3 @@ BIND_FILE_BUFFER_FILE=/env/subdomain.txt
 ###> filename log ###
 LOG_FILE_NAME=prod
 ###< filename log ###
-
-###> mailcatcher ###
-MAILER_DSN=smtp://localhost:25?verify_peer=false
-###< symfony/mercure-bundle ###

+ 2 - 1
src/Commands/Doctrine/SchemaUpdateCommand.php

@@ -36,7 +36,8 @@ class SchemaUpdateCommand extends UpdateSchemaDoctrineCommand
 
         $output->writeln(sprintf('-- Database successfully updated, %s scripts executed', count($scripts)));
 
-        throw new \RuntimeException('<!> Operation interrupted: use the d:s:u command on the current version to update the DB tables');
+        $output->writeln('<!> Operation interrupted: use the d:s:u command on the current version to update the DB tables');
         //        parent::executeSchemaCommand($input, $output, $schemaTool, $metadatas, $ui);
+        return 0;
     }
 }