Skip to content

Commit

Permalink
Merge pull request #54 from byjg/5.0
Browse files Browse the repository at this point in the history
Force read all table before drop the database.
  • Loading branch information
byjg authored Jan 7, 2025
2 parents c8da6d3 + 3bc9ada commit d06b6fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Database/SqliteDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ public function dropDatabase(): void
END;
");

foreach ($iterator as $row) {
$this->getDbDriver()->execute($row->get('command'));
$list = $iterator->toArray();

foreach ($list as $row) {
$this->getDbDriver()->execute($row['command']);
}
}

Expand Down

0 comments on commit d06b6fb

Please sign in to comment.