Hello Friend, Good that you are seeking a help here. You have options. Consult a psychiatrist who can recommend the medication for the migraine.
Other options is; Just be aware that medicine are just one part of any psychic treatments. In parallel you need to follow certain non medicine treatment plan like changes in your lifestyle routines, excersise, dietary changes, self therapies etc to get permanent cure.
Without any of these efforts, problems will reoccur. Better explore a non medicinal treatment plan with a consultation of a psychologists.
Next Steps
Feel free to reach me directly or online for further evaluation and recommendation.