Skip to content

Commit

Permalink
fix: throw an exception if tables cant be dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
stmh committed Feb 23, 2022
1 parent 21a2048 commit 9f3d9c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Method/MysqlMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ public function dropDatabase(
);

$result = $shell->run(implode(' ', $cmd), true, true);
if ($result->failed()) {
$result->throwException("Could not drop tables from db!");
}

$cmd =array_merge(
[
Expand Down

0 comments on commit 9f3d9c8

Please sign in to comment.