Keep mise upgrades from pruning versions still in use (cherry picked from commit 0973169098) (cherry picked from commit e4fa14cefff0a19e72bb9f41722edd6b6f1afd93)
0973169098