Is a patient in pain or seeking drugs?

How should a clinician treat a patient with recurring migraines, that also has a history of drug seeking behavior?