magnesium ion transport [GO_0015693] - Virtual Fly Brain