Show a warning if single connection
We deprecated single connection in https://docs.gitlab.com/ee/update/deprecations.html#single-database-connection-is-deprecated
Proposal
Show a prominent warning to the admin if the installation is single connection:
Warning
Your database has a single connection, and single connections were deprecated in GitLab 15.9. Please add a
:ci
section to your database, following these instructions: https://docs.gitlab.com/ee/install/installation.html#configure-gitlab-db-settings.
Implementation guide
We can place the warning in the same place we warn when the PostgreSQL version is too old. Example for PG:
The code related to this warning can be found in lib/gitlab/database.rb
Edited by Thong Kuah