bring (something) up to code
To alter or improve something so that it meets building codes or regulations. Primarily heard in US. The inspector said we need to bring the house up to code by installing railings on the staircases.
bring something up to code
renovate an old building or update its features in line with the latest building regulations. North American