I would advise you to get your thyroid checked. I used to have dreadful migraines (at least once a week) that lasted for several hours and included throwing up. Once I was put on thyroid medication they completely stopped. My doctor thought that the two shouldn't be connected but they were for me.