Your passport number will change when you update your passport after it expires. If this happens in between booking a flight and boarding, you need to contact your airline. They can update the information on your ticket using your updated passport.