uPortal upgrade best practices
Technologies that can help
Version control
Specific upgrade paths
The code would work fine if the database were up to date.. that seems to be the place where it's tough to shoehorn changes in.
There are likely to be different upgrade paths depending for the various uPortal versions.
06 from 2.4.2 to 2.5.0