diff --git a/src/Sushi.php b/src/Sushi.php index c84ad50..12abfd4 100644 --- a/src/Sushi.php +++ b/src/Sushi.php @@ -133,7 +133,7 @@ public function migrate() $tableName = $this->getTable(); if (count($rows)) { - $this->createTable($tableName, $rows[0]); + $this->createTable($tableName, array_values($rows)[0]); } else { $this->createTableWithNoData($tableName); }