Skip to content

Commit 999e40b

Browse files
authored
Merge pull request #1727 from DependencyTrack/issue-1724
Raise minimum supported PostgreSQL version to 13
2 parents 85b3c0d + a9c14a1 commit 999e40b

File tree

8 files changed

+18
-3
lines changed

8 files changed

+18
-3
lines changed

commons-persistence/src/test/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ quarkus.hibernate-orm.quote-identifiers.strategy=all
99
# Hibernate should only validate that the existing schema matches our entity classes,
1010
# but it should never generate a schema by itself.
1111
quarkus.hibernate-orm.database.generation=validate
12+
quarkus.datasource.devservices.image-name=postgres:13-alpine
1213
quarkus.datasource.devservices.init-script-path=schema.sql

docs/getting-started/upgrading.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,15 @@ Refer to the [kafka configuration reference] for details. Example of name change
3232
| `GET /api/v1/tag/{policyUuid}` | `GET /api/v1/tag/policy/{uuid}` |
3333
| `GET /api/v1/bom/token/{uuid}` | `GET /api/v1/event/token/{uuid}` |
3434

35+
* The minimum supported PostgreSQL version has been raised from 11 to 13 ([hyades/#1724]).
36+
Lower versions may still work, but are no longer tested against.
37+
3538
[apiserver/#840]: https://github.com/DependencyTrack/hyades-apiserver/pull/840
3639
[apiserver/#888]: https://github.com/DependencyTrack/hyades-apiserver/pull/888
3740
[apiserver/#904]: https://github.com/DependencyTrack/hyades-apiserver/pull/904
3841
[apiserver/#910]: https://github.com/DependencyTrack/hyades-apiserver/pull/910
3942
[hyades/#1392]: https://github.com/DependencyTrack/hyades/issues/1392
43+
[hyades/#1724]: https://github.com/DependencyTrack/hyades/issues/1724
4044

4145
[kafka configuration reference]: ../reference/configuration/api-server.md#kafka
4246
[task scheduling configuration reference]: ../reference/configuration/api-server.md#task-scheduling

docs/operations/database.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Dependency-Track requires a [PostgreSQL], or PostgreSQL-compatible database to operate.
22

3-
The lowest supported version is 11. You are encouraged to use the [newest available version].
3+
The lowest supported version is 13. You are encouraged to use the [newest available version].
44

55
Depending on available resources, individual preferences, or organizational policies,
66
you will have to choose between a [managed](#managed-solutions), or [self-hosted](#self-hosting) solution.
@@ -91,7 +91,7 @@ For example:
9191
```yaml
9292
services:
9393
postgres:
94-
image: postgres:16
94+
image: postgres:17
9595
command: >-
9696
-c 'shared_buffers=2GB'
9797
-c 'effective_cache_size=6GB'

e2e/src/test/java/org/dependencytrack/e2e/AbstractE2ET.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
public class AbstractE2ET {
5656

57-
protected static DockerImageName POSTGRES_IMAGE = DockerImageName.parse("postgres:15-alpine");
57+
protected static DockerImageName POSTGRES_IMAGE = DockerImageName.parse("postgres:13-alpine");
5858
protected static DockerImageName REDPANDA_IMAGE = DockerImageName.parse("docker.redpanda.com/redpandadata/redpanda:v24.2.17");
5959
protected static DockerImageName API_SERVER_IMAGE = DockerImageName.parse("ghcr.io/dependencytrack/hyades-apiserver")
6060
.withTag(Optional.ofNullable(System.getenv("APISERVER_VERSION")).orElse("snapshot"));

mirror-service/src/main/resources/application.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ quarkus.kafka.devservices.topic-partitions."dtrack.epss"=1
248248
# @hidden
249249
%dev.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/dtrack
250250

251+
# @category: Database
252+
# @hidden
253+
quarkus.datasource.devservices.image-name=postgres:13-alpine
254+
251255
# @category: Database
252256
# @hidden
253257
quarkus.datasource.devservices.init-script-path=schema.sql

notification-publisher/src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ quarkus.hibernate-orm.database.generation=validate
5656
%dev.quarkus.datasource.username=dtrack
5757
%dev.quarkus.datasource.password=dtrack
5858
%dev.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/dtrack
59+
quarkus.datasource.devservices.image-name=postgres:13-alpine
5960
quarkus.datasource.devservices.init-script-path=schema.sql
6061

6162
quarkus.hibernate-orm.active=true

repository-meta-analyzer/src/main/resources/application.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ quarkus.hibernate-orm.database.generation=validate
259259
# @hidden
260260
%dev.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/dtrack
261261

262+
# @category: Database
263+
# @hidden
264+
quarkus.datasource.devservices.image-name=postgres:13-alpine
265+
262266
# @category: Database
263267
# @hidden
264268
quarkus.datasource.devservices.init-script-path=schema.sql

vulnerability-analyzer/src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ quarkus.hibernate-orm.database.generation=validate
160160
%dev.quarkus.datasource.username=dtrack
161161
%dev.quarkus.datasource.password=dtrack
162162
%dev.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/dtrack
163+
quarkus.datasource.devservices.image-name=postgres:13-alpine
163164
quarkus.datasource.devservices.init-script-path=schema.sql
164165
#%dev.quarkus.hibernate-orm.log.sql=true
165166
quarkus.hibernate-orm.active=true

0 commit comments

Comments
 (0)