Changed output type and exit code of upgrade for up-to date

resolves #27048