To find the name of the unique constraint, run
SELECT conname
FROM pg_constraint
WHERE conrelid = 'cart'::regclass
AND contype="u";
Then drop the constraint as follows:
ALTER TABLE cart DROP CONSTRAINT cart_shop_user_id_key;
Replace cart_shop_user_id_key
with whatever you got from the first query.