Selaa lähdekoodia

d:s:u now write a warning instead of throwing exception when interrupted

Olivier Massot 1 vuosi sitten
vanhempi
commit
ed057a8b80
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      src/Commands/Doctrine/SchemaUpdateCommand.php

+ 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;
     }
 }