Thank you for posting your query.
First of all, I would like to clarify that your migraines are not related to encephalomalacia
(scarring of brain due to old head injury
So, you should start a preventive medication for migraine such as Topiramate or beta blockers or divalproex. For relief of headaches, you could take diclofenac
Your memory problems could be related to encephalomalacia. There is no specific treatment for encephalomalacia.
Wishing you good health,
Dr Sudhir Kumar MD DM (Neurology)
Senior consultant Neurologist
Apollo Hospitals, Hyderabad