Upgrading the DB engine itself is outside the scope of the SonarQube Community / Documentation / etc. If you’re asking about upgrading the schema SonarQube uses within the database, you don’t need to worry about it; SonarQube will take care of that itself. Just make sure you follow the upgrade guide: https://docs.sonarqube.org/display/SONAR/Upgrading.