diff --git a/src/Parser/CreateTableParser.php b/src/Parser/CreateTableParser.php index 6d24a881..e2988593 100644 --- a/src/Parser/CreateTableParser.php +++ b/src/Parser/CreateTableParser.php @@ -373,7 +373,11 @@ private static function parseFieldOrKey(array &$tokens, array &$fields, array &$ $indexes[] = $index; return; case 'CHECK': - return; + case 'FOREIGN KEY': + // TODO: Implement full parsing logic for FOREIGN KEY constraints. + // Currently, we are just skipping/ignoring the constraint to avoid + // the "Unsupported field type: (" parser error. + return; // Ignore the constraint for now } $fields[] = static::parseField($tokens);