Skip to content

Commit 7490a6f

Browse files
committed
FINERACT-2517: Upgrade to Postgresql version 18
1 parent 1cdc97a commit 7490a6f

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

.github/workflows/build-postgresql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
services:
1919
postgresql:
20-
image: postgres:18.2
20+
image: postgres:18.3
2121
ports:
2222
- 5432:5432
2323
env:

.github/workflows/liquibase-only-postgresql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
services:
1414
postgresql:
15-
image: postgres:18.2
15+
image: postgres:18.3
1616
ports:
1717
- 5432:5432
1818
env:

.github/workflows/run-integration-test-sequentially-postgresql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
services:
1616
postgresql:
17-
image: postgres:18.2
17+
image: postgres:18.3
1818
ports:
1919
- 5432:5432
2020
env:

.github/workflows/verify-liquibase-backward-compatibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
services:
1414
postgresql:
15-
image: postgres:18.2
15+
image: postgres:18.3
1616
ports:
1717
- 5432:5432
1818
env:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ In the moment you get started writing code, please consult our [CONTRIBUTING](CO
3030
REQUIREMENTS
3131
============
3232
* min. 16GB RAM and 8 core CPU
33-
* `MariaDB >= 11.5.2` or `PostgreSQL >= 17.0`
33+
* `MariaDB >= 11.5.2` or `PostgreSQL >= 18.0`
3434
* `Java >= 21` (Azul Zulu JVM is tested by our CI on GitHub Actions)
3535

3636
Tomcat (min. v10) is only required, if you wish to deploy the Fineract WAR to a separate external servlet container. You do not need to install Tomcat to run Fineract. We recommend the use of the self-contained JAR, which transparently embeds a servlet container using Spring Boot.

buildSrc/src/main/groovy/org.apache.fineract.dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ dependencyManagement {
250250
exclude 'org.slf4j:jcl-over-slf4j'
251251
exclude 'org.slf4j:slf4j-api'
252252
}
253-
dependency 'org.postgresql:postgresql:42.7.8'
253+
dependency 'org.postgresql:postgresql:42.7.9'
254254

255255
dependency 'com.mysql:mysql-connector-j:9.3.0'
256256

config/docker/compose/postgresql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ version: "3.8"
2020

2121
services:
2222
postgresql:
23-
image: postgres:16.1
23+
image: postgres:18.3
2424
volumes:
2525
- ${PWD}/config/docker/postgresql/docker-entrypoint-initdb.d/01-init.sh:/docker-entrypoint-initdb.d/01-init.sh:Z,ro
2626
restart: always

fineract-command/src/test/java/org/apache/fineract/command/CommandBaseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ abstract class CommandBaseTest {
4545
protected static Network network = Network.newNetwork();
4646

4747
@Container
48-
private static final PostgreSQLContainer<?> POSTGRES_CONTAINER = new PostgreSQLContainer<>(DockerImageName.parse("postgres:16"))
48+
private static final PostgreSQLContainer<?> POSTGRES_CONTAINER = new PostgreSQLContainer<>(DockerImageName.parse("postgres:18.3"))
4949
.withNetwork(network).withUsername("root").withPassword("mifos").withDatabaseName("fineract-test");
5050

5151
@Container

integration-tests/src/test/java/org/apache/fineract/integrationtests/SavingsAccountsExternalIdTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void submitSavingsAccountsApplication() {
5959
request.setProductId(1L);
6060
request.setLocale(locale);
6161
request.setDateFormat(dateFormat);
62-
request.submittedOnDate(formattedDate);
62+
request.setSubmittedOnDate(formattedDate);
6363
request.setExternalId(EXTERNAL_ID);
6464

6565
Response<PostSavingsAccountsResponse> response = okR(fineractClient().savingsAccounts.submitApplication2(request));

integration-tests/src/test/java/org/apache/fineract/integrationtests/common/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public static String randomDateTimeGenerator(String dateFormat) {
591591
}
592592

593593
private static int getYear() {
594-
return 1000 + random.nextInt(1001);
594+
return 2000 + random.nextInt(31);
595595
}
596596

597597
private static int getMonth() {

0 commit comments

Comments
 (0)