From 33bd0d8d94b440e5c718c5d6ef672c368297cef2 Mon Sep 17 00:00:00 2001 From: uPagge Date: Mon, 8 Mar 2021 18:01:48 +0300 Subject: [PATCH] liquibase from maven plugin --- pom.xml | 8 ++++++++ src/main/resources/application.yaml | 2 +- src/main/resources/liquibase.properties | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/liquibase.properties diff --git a/pom.xml b/pom.xml index 5c00deb..7f4a987 100644 --- a/pom.xml +++ b/pom.xml @@ -54,6 +54,14 @@ + + org.liquibase + liquibase-maven-plugin + 4.2.0 + + src/main/resources/liquibase.properties + + org.springframework.boot spring-boot-maven-plugin diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 1e5732d..2daa69a 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -5,4 +5,4 @@ spring: driver-class-name: org.postgresql.Driver password: 121314Ma liquibase: - change-log: classpath:db/changelog/db.changelog-master.xml \ No newline at end of file + enabled: false \ No newline at end of file diff --git a/src/main/resources/liquibase.properties b/src/main/resources/liquibase.properties new file mode 100644 index 0000000..e3f4a3d --- /dev/null +++ b/src/main/resources/liquibase.properties @@ -0,0 +1,5 @@ +url=jdbc:postgresql://localhost:5432/liquibase_example +username=postgres +password= +driver=org.postgresql.Driver +changeLogFile=src/main/resources/db/changelog/db.changelog-master.xml \ No newline at end of file