From 9e01a3ecd63f87342cdd8452b6f4e5ab7e21e463 Mon Sep 17 00:00:00 2001 From: uPagge Date: Sun, 7 Mar 2021 15:10:50 +0300 Subject: [PATCH] create table person --- pom.xml | 4 ++++ src/main/resources/application.properties | 0 src/main/resources/application.yaml | 8 ++++++++ .../db/changelog/db.changelog-master.xml | 18 ++++++++++++++++++ .../db.changelog/db.changelog-master.xml | 0 5 files changed, 30 insertions(+) delete mode 100644 src/main/resources/application.properties create mode 100644 src/main/resources/application.yaml create mode 100644 src/main/resources/db/changelog/db.changelog-master.xml delete mode 100644 src/main/resources/db/changelog/resources/db.changelog/db.changelog-master.xml diff --git a/pom.xml b/pom.xml index 57ed81f..5c00deb 100644 --- a/pom.xml +++ b/pom.xml @@ -21,6 +21,10 @@ org.springframework.boot spring-boot-starter + + org.springframework.boot + spring-boot-starter-data-jpa + org.liquibase liquibase-core diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml new file mode 100644 index 0000000..1e5732d --- /dev/null +++ b/src/main/resources/application.yaml @@ -0,0 +1,8 @@ +spring: + datasource: + url: jdbc:postgresql://localhost:5432/liquibase_example + username: postgres + driver-class-name: org.postgresql.Driver + password: 121314Ma + liquibase: + change-log: classpath:db/changelog/db.changelog-master.xml \ No newline at end of file diff --git a/src/main/resources/db/changelog/db.changelog-master.xml b/src/main/resources/db/changelog/db.changelog-master.xml new file mode 100644 index 0000000..3d4c9e1 --- /dev/null +++ b/src/main/resources/db/changelog/db.changelog-master.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/db/changelog/resources/db.changelog/db.changelog-master.xml b/src/main/resources/db/changelog/resources/db.changelog/db.changelog-master.xml deleted file mode 100644 index e69de29..0000000