Extreme thirst

Chandra
I'm 33+5 and I usually wake up 2-4 times a night to pee. Usually before I go back to bed I'll get a sip of water. (We keep a whole pack in our bedroom) I might drink half a bottle of water during the night. Well last night I had a huge migraine and went to bed kinda early. I woke up every 1 1/2 -2 hours and had to pee and drank literally at least a half a bottle to a bottle every time I woke up. I was so thirsty I felt like my throat was gonna dry up. I realize that's probably why I kept waking up to pee but I couldn't help it I felt like I hadn't drank anything in a month. Anyone know what causes that?