Homeowners insurance will only pay for code upgrades if you added on building code protection to your policy.