Aside from good and bad bacteria, some essential hormones and neurotransmitters are created in the gut and have a significant effect on our brains. Some studies have also shown that a disruption to the normal, healthy balance of bacteria in the microbiome can cause the immune system to overreact and contribute to inflammation of the GI tract, which in turn can lead to the development of diseases that occur not only throughout your body, but also in your brain.
This may not be a cure and everyone who suffers from migraine knows that there is nothing that works for everyone, but it’s another option to explore. So take care of your second brain and it might help you to take care of your first brain!
 The effect of Helicobacter pylori eradication on migraine: a randomized, double blind, controlled trial. Faraji F1, Zarinfar N, Zanjani AT, Morteza A. https://www.ncbi.nlm.nih.gov/pubmed/23159967