Ater my last cruise,my wife and I came to the same conclusion. Before leaving on an extended cruise one should go to your doctor and get some antibiotics which have helped you in the past.
It's a rather simple preventive measure and it would have been most helpful.