Migraine????

I have a 4 month old who doesn't sleep through the night yet (wakes up once or twice) and sometimes doesn't fall asleep until 3-4am and wakes up early 
So I don't really get a lot of sleep and I haven't been drinking any water 
I have been having EXTRUSHIATING migraines every single day 
I have to squint my eyes because of them 
I was wondering if I have been getting them because I haven't been drinking water?