help!

I have been suffering from migrains for years tried everything! with this pregnancy my mid wife prescribed me percocet and continued my sleeping pills as well I'm just wondering if anyone has had the same situation and how it turned out for baby.