A dog that injured a woman on the Danesholme estate will be put down, a court has ordered.