소스 검색

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

Olivier Massot 1 년 전
부모
커밋
ed057a8b80
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }
 }