Hi.. Depression is a chronic problem and do not occur over night in a few days.. So if your symptoms have been only recently, then it may not be depression.. Yes deprived sleep can precipitate migraine attacks.. So find the reason for your sleeplessness and get over it.. You may take professional help from a clinician if you are not able to solve it yourself...