When a colony culturaly flips, the production is not automatically scheduled to upgrade buildings. Furthermore, it seems that buiding an upgrade on a basic buiding incurs the same cost as building from scratch, and I did not see any "upgrade" option.