There is a high possibility that you have some sort of hormonal
disorder that is causing the irregular periods
.You need to see a doctor and get some tests done.I suggest that you get an ultrasound
and a blood hormone profile.Some of the things to rule out are thyroid problems,polycystic ovaries
etc.I thing you see to do this soon.Your migraines are not involved.