diff --git a/doc/install/requirements.md b/doc/install/requirements.md index f8f43c733c360ed2cbe8a873e62d435f512844e1..3a8b7bf1004721930425b31d8423e30dbb4b746b 100644 --- a/doc/install/requirements.md +++ b/doc/install/requirements.md @@ -116,6 +116,7 @@ the following table) as these were used for development and testing: |----------------|----------------------------| | 10.0 | 9.6 | | 13.0 | 11 | +| 14.0 | 12 | You must also ensure the following extensions are loaded into every GitLab database. [Read more about this requirement, and troubleshooting](postgresql_extensions.md). diff --git a/lib/gitlab/database.rb b/lib/gitlab/database.rb index 14a65ac1f5d3f6cf1d43e9d25c0291153997b2f5..88419ff6cecf0db45c5e813853db816290f2ab13 100644 --- a/lib/gitlab/database.rb +++ b/lib/gitlab/database.rb @@ -14,7 +14,7 @@ module Database # Minimum PostgreSQL version requirement per documentation: # https://docs.gitlab.com/ee/install/requirements.html#postgresql-requirements - MINIMUM_POSTGRES_VERSION = 11 + MINIMUM_POSTGRES_VERSION = 12 # https://www.postgresql.org/docs/9.2/static/datatype-numeric.html MAX_INT_VALUE = 2147483647 diff --git a/spec/lib/gitlab/database_spec.rb b/spec/lib/gitlab/database_spec.rb index 5c9af1206c0585760add3b7f24452dc4c04d5910..847f7ec2d74561d91ab2c14ef76eb2f3da309d64 100644 --- a/spec/lib/gitlab/database_spec.rb +++ b/spec/lib/gitlab/database_spec.rb @@ -125,10 +125,10 @@ expect(described_class.postgresql_minimum_supported_version?).to eq(false) end - it 'returns true when using PostgreSQL 11' do + it 'returns false when using PostgreSQL 11' do allow(described_class).to receive(:version).and_return('11') - expect(described_class.postgresql_minimum_supported_version?).to eq(true) + expect(described_class.postgresql_minimum_supported_version?).to eq(false) end it 'returns true when using PostgreSQL 12' do