Minn. Stat. § 518.18
(d) If the court has jurisdiction to determine child custody matters, the court shall not modify a prior custody order or a parenting plan provision which specifies the child's primary residence unless it finds, upon the basis of facts, including unwarranted denial of, or interference with, a duly established parenting time schedule, that have arisen since the prior order or that were unknown to the court at the time of the prior order, that a change has occurred in the circumstances of the child or the parties and that the modification is necessary to serve the best interests of the child. In applying these standards the court shall retain the custody arrangement or the parenting plan provision specifying the child's primary residence that was established by the prior order unless:
(v) the court has denied a request of the primary custodial parent to move the residence of the child to another state, and the primary custodial parent has relocated to another state despite the court's order.
In addition, a court may modify a custody order or parenting plan under section 631.52.