Migraines?

Katie
Did anyone else have majorly bad migraines thru the beginning of their pregnancy? I'm 14 weeks and I get these really bad migraines. Either 
A. If I don't eat something every two hours or
B. Every night around 6-7 o'clock. The doctor said this shouldn't be happening now and gave me some headache medicine. She said not to take it unless it's like an emergency because it can be and for the baby. I wish there was something else I could do help???