Browse files

ignore errors when attempting to drop tables

  • Loading branch information...
1 parent 9974202 commit dc256459f5f514c4127a8b941ed20727ea60279d @lsmith77 lsmith77 committed Oct 8, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/Jackalope/Tools/Console/Command/InitDoctrineDbalCommand.php
View
6 src/Jackalope/Tools/Console/Command/InitDoctrineDbalCommand.php
@@ -66,7 +66,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (true === $input->getOption('dump-sql')) {
$output->writeln($sql);
} else {
- $connection->exec($sql);
+ try {
+ $connection->exec($sql);
+ } catch (\Exception $e) {
+ $output->writeln($e->getMessage());
+ }
}
}
}

0 comments on commit dc25645

Please sign in to comment.