Skip to content

Commit d06b6fb

Browse files
authored
Merge pull request #54 from byjg/5.0
Force read all table before drop the database.
2 parents c8da6d3 + 3bc9ada commit d06b6fb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Database/SqliteDatabase.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ public function dropDatabase(): void
3838
END;
3939
");
4040

41-
foreach ($iterator as $row) {
42-
$this->getDbDriver()->execute($row->get('command'));
41+
$list = $iterator->toArray();
42+
43+
foreach ($list as $row) {
44+
$this->getDbDriver()->execute($row['command']);
4345
}
4446
}
4547

0 commit comments

Comments
 (0)