Major version upgrades contain backward-incompatible changes, including database upgrades, modifications, and migrations. As such, we always recommend taking backups prior to upgrading, and following the suggested upgrade path to avoid issues.
The way to “downgrade” a GitLab Omnibus server’s version to install a previous version using the package manager. Downgrading will reconfigure your instance, and a major version downgrade will try to run background migrations that may be backward-incompatible.
gitlab-ctl revert-pg-upgrade
runs this script, to downgrade PostgreSQL server to the previous version. However, any migrations or changes made to the PostgreSQL database itself will persist and may cause problems. For this reason, I don’t suggest using it on a production system.
I suggest reverting to backup of a known good state, and then following this upgrade path:
10.x.x
> 10.8.6
> 11.11.8
> 12.0.9
> 12.x.x
If you have problems during the upgrade process, the following commands are very helpful in troubleshooting and understanding the problem: