Half the world has common migraines. If they are infrequent and not severe, or controlled by simple medications without side effects they are not a problem.
Classic migraines can also be approved by the AME if they are infrequent and uncomplicated. Migraines affecting vision or balance get far more difficult and typically are very difficult to get FAA approval.
https://www.faa.gov/about/office_org...item46/amd/ha/
https://www.faa.gov/about/office_org...CIMigraine.pdf