-- Revert gaia:hippo_2018_01_19_add_uniq_key_on_userbrowsing from mysql

BEGIN;

-- XXX Add DDLs here.

ALTER TABLE hippo_user_browsing DROP FOREIGN KEY merchant_id_refs_id_4398ae22;
ALTER TABLE hippo_user_browsing DROP FOREIGN KEY user_id_refs_id_ace02e36;


ALTER TABLE hippo_user_browsing DROP   INDEX UK_user_merchant;

ALTER TABLE hippo_user_browsing ADD CONSTRAINT user_id_refs_id_ace02e36 FOREIGN KEY (`user_id`) REFERENCES auth_user (ID) ;



ALTER TABLE hippo_user_browsing ADD CONSTRAINT merchant_id_refs_id_4398ae22 FOREIGN KEY (`merchant_id`) REFERENCES hippo_merchant (ID) ;


COMMIT;
