sql-parser
sql-parser copied to clipboard
Allow parsing ALTER TABLE statement with column check constraint
CHECK is in Parser::STATEMENT_PARSERS, but also allowed in the column definition.
This doesn't enforce an order for the check constraint. It seems to be only allowed at the end of the column definition, only the column order (FIRST / AFTER x) can follow.