Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Parser/CreateTableParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down