Performs any upgrades that may be needed as a result of the Setup procedure of JIRA
Get the set of setupUpgradeNumbers which are to be performed for this setup.
Iterate over these numbers and if either of the standard, professional or enterprise upgrade maps contains an
UpgradeTask
with this number then do the upgrade
If errors are found, it will cancel the upgrade, and return the list of errors.
For each upgrade that happens successfully, it will increment the build number in the database, so that if one
fails, you do not have to repeat all the upgrades that have already run.
If there are no errors from the upgrade, the build number in the database is incremented to the current build
number. This is because there may be no upgrades for a particular version & needUpgrade() checks build no in
database.