diff --git a/src/Driver/SQLite/Schema/SQLiteForeignKey.php b/src/Driver/SQLite/Schema/SQLiteForeignKey.php index cf788f1c..14aad89c 100644 --- a/src/Driver/SQLite/Schema/SQLiteForeignKey.php +++ b/src/Driver/SQLite/Schema/SQLiteForeignKey.php @@ -68,7 +68,7 @@ public function compare(AbstractForeignKey $initial): bool */ public static function createInstance(string $table, string $tablePrefix, array $schema): self { - $reference = new self($table, $tablePrefix, $schema['id']); + $reference = new self($table, $tablePrefix, (string) $schema['id']); $reference->columns = $schema['from']; $reference->foreignTable = $schema['table'];