diff --git a/src/Database/SqliteDatabase.php b/src/Database/SqliteDatabase.php index 82a0f0f..1979e45 100644 --- a/src/Database/SqliteDatabase.php +++ b/src/Database/SqliteDatabase.php @@ -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']); } }