ERROR 3780 (HY000): Referencing column '... and referenced column '....' in foreign key constraint '...' are incompatible.
Например:
ERROR 3780 (HY000): Referencing column 'category_id' and referenced column 'id' in foreign key constraint 'subcategories_ibfk_1' are incompatible.
Для запроса: