From 24d7ff7571426ff21ccace545e9906b9220351be Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Fri, 24 May 2024 02:48:04 +0000 Subject: [PATCH] feat : migrate from flyway to liquibase --- boot-api-archunit-sample/README.md | 5 ++++- boot-api-archunit-sample/pom.xml | 8 ++++---- .../main/resources/db/changelog/db.changelog-master.yaml | 5 +++++ .../migration/V1__create_clients_table.sql} | 0 .../resources/db/migration/postgresql/V1__01_init.sql | 0 5 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 boot-api-archunit-sample/src/main/resources/db/changelog/db.changelog-master.yaml rename boot-api-archunit-sample/src/main/resources/db/{migration/postgresql/V2__create_clients_table.sql => changelog/migration/V1__create_clients_table.sql} (100%) delete mode 100644 boot-api-archunit-sample/src/main/resources/db/migration/postgresql/V1__01_init.sql diff --git a/boot-api-archunit-sample/README.md b/boot-api-archunit-sample/README.md index 27db701e5..0e12e696a 100644 --- a/boot-api-archunit-sample/README.md +++ b/boot-api-archunit-sample/README.md @@ -41,7 +41,10 @@ You can also run the application using Maven as follows: * Swagger UI: http://localhost:8080/swagger-ui.html * Actuator Endpoint: http://localhost:8080/actuator +### Lessons +* Migrated from flyway to liquibase bacause flyway is stopping upgrade to latest version of postgres + Here are some of technologies that I used to develop this example: -* Spring Boot - 3.2.0 +* Spring Boot - 3.3.0 * Archunit - 1.2.0 * Junit5 \ No newline at end of file diff --git a/boot-api-archunit-sample/pom.xml b/boot-api-archunit-sample/pom.xml index b15ed7080..0511cbd2f 100644 --- a/boot-api-archunit-sample/pom.xml +++ b/boot-api-archunit-sample/pom.xml @@ -7,7 +7,7 @@ org.springframework.boot spring-boot-starter-parent - 3.2.6 + 3.3.0 com.example.archunit @@ -78,8 +78,8 @@ runtime - org.flywaydb - flyway-core + org.liquibase + liquibase-core org.springdoc @@ -220,7 +220,7 @@ - 2.38.0 + 2.41.0 diff --git a/boot-api-archunit-sample/src/main/resources/db/changelog/db.changelog-master.yaml b/boot-api-archunit-sample/src/main/resources/db/changelog/db.changelog-master.yaml new file mode 100644 index 000000000..8428c6cbf --- /dev/null +++ b/boot-api-archunit-sample/src/main/resources/db/changelog/db.changelog-master.yaml @@ -0,0 +1,5 @@ +databaseChangeLog: + - includeAll: + path: migration/ + errorIfMissingOrEmpty: true + relativeToChangelogFile: true \ No newline at end of file diff --git a/boot-api-archunit-sample/src/main/resources/db/migration/postgresql/V2__create_clients_table.sql b/boot-api-archunit-sample/src/main/resources/db/changelog/migration/V1__create_clients_table.sql similarity index 100% rename from boot-api-archunit-sample/src/main/resources/db/migration/postgresql/V2__create_clients_table.sql rename to boot-api-archunit-sample/src/main/resources/db/changelog/migration/V1__create_clients_table.sql diff --git a/boot-api-archunit-sample/src/main/resources/db/migration/postgresql/V1__01_init.sql b/boot-api-archunit-sample/src/main/resources/db/migration/postgresql/V1__01_init.sql deleted file mode 100644 index e69de29bb..000000000