It depends on how bad it is. Half of the divorce cases out there involve one or the other party being on anti-depressant medications, so that in and of itself won’t matter much. It really depends on how severe the mental illness is, and how it affects your parenting. If the mental illness negatively affects your parenting, or poses a danger of harm to the children, that will obviously be more relevant. And unless your mental health records are already sufficient for a custody evaluator to assess your mental health, you can expect that a custody evaluation will include a psychological evaluation as well.
Effective August 1, 2013, the law in Minnesota allows same sex couples to get married or divorced in this state. To file for divorce in Minnesota, at least one party must be living in Minnesota for at least 180 days before starting the divorce case. A same sex couple may also file for divorce in Minnesota if they got married in Minnesota on or after August 1, 2013, and each party to the marriage now lives in a state that does not allow the dissolution of the parties' same sex marriage. See Minn. Stat. § 518.07, subd. 2.