My question is about cases like this one:
composite foreign key not working
The answer there is:
I wanted to edit the post so that the code part will be in code markdown, as follows:
ALTER TABLE cart ADD CONSTRAINT constraint_name UNIQUE (product_id , sub_product_id);
However it doesn't let me because
Edit must be at least 6 characters
This edit is required for better readability of posts - it's hard to read code that isn't styled correctly. The limitation in this case prevents the improvement of the post.