I suspect this is location specific though. In the UK my migraine medication was available over the counter, I still had to have a discussion with the pharmacist every time I bought it. Conversely when ever I've needed an actual prescription medication, in an emergency or whatever, that has always had to go through my doctor to get the prescription sorted.