diff --git a/pom.xml b/pom.xml
index a9e6ead..84c0a47 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,16 +10,16 @@
com.pj
liquibasedemo
- 1.4.0
+ 1.5.0
liquibasedemo
Liquibase Demo project with Spring Boot and Spring Data
2.3.1.RELEASE
5.4.17.Final
- 3.10.0
- 3.10.0
- 3.10.0
+ 4.0.0
+ 4.0.0
+ 3.10.1
2.0.1.Final
3.27.0-GA
2.4.0-b180830.0359
@@ -93,21 +93,21 @@
true
- dev
+ dev
test
- test
+ test
prod
- prod
+ prod
@@ -136,8 +136,9 @@
${liquibase-maven-plugin.version}
src/main/resources/liquibase.properties
- src/main/resources/db/db.changelog-master.xml
- src/main/resources/db/changelog/${maven.build.timestamp}_changelog.xml
+ src/main/resources/db/db.changelog-${activeProfile}.xml
+ src/main/resources/db/db.changelog-${activeProfile}.xml
+ src/main/resources/db/changelog/${activeProfile}/${maven.build.timestamp}_changelog.xml
info
diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml
index 145c37e..ed317d5 100755
--- a/src/main/resources/application-dev.yml
+++ b/src/main/resources/application-dev.yml
@@ -8,25 +8,14 @@ spring:
url: ${spring.datasource.url}
username: ${spring.datasource.username}
password: ${spring.datasource.password}
-
jpa:
hibernate:
ddl-auto: none
# Liquibase properties
- devtools:
- restart:
- enabled: true
+ liquibase:
+ enabled: false
## Server Properties
server:
- port: 8080
-
-management:
- endpoints:
- web:
- exposure:
- include: ["health","info"]
- endpoint:
- auditevents:
- enabled: true
+ port: 8081
diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml
index 819187e..970ef6f 100755
--- a/src/main/resources/application-local.yml
+++ b/src/main/resources/application-local.yml
@@ -15,21 +15,11 @@ spring:
ddl-auto: update
# Liquibase properties
- devtools:
- restart:
- enabled: true
-
+ liquibase:
+ enabled: false
## Server Properties
server:
- port: 8080
+ port: 8081
-management:
- endpoints:
- web:
- exposure:
- include: ["health","info"]
- endpoint:
- auditevents:
- enabled: true
diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml
index 4e6c956..c0f3836 100755
--- a/src/main/resources/application-prod.yml
+++ b/src/main/resources/application-prod.yml
@@ -14,20 +14,11 @@ spring:
ddl-auto: none
# Liquibase properties
- devtools:
- restart:
- enabled: true
+ liquibase:
+ enabled: false
## Server Properties
server:
- port: 8080
+ port: 8081
-management:
- endpoints:
- web:
- exposure:
- include: ["health","info"]
- endpoint:
- auditevents:
- enabled: true
diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml
index 4e6c956..c0f3836 100755
--- a/src/main/resources/application-test.yml
+++ b/src/main/resources/application-test.yml
@@ -14,20 +14,11 @@ spring:
ddl-auto: none
# Liquibase properties
- devtools:
- restart:
- enabled: true
+ liquibase:
+ enabled: false
## Server Properties
server:
- port: 8080
+ port: 8081
-management:
- endpoints:
- web:
- exposure:
- include: ["health","info"]
- endpoint:
- auditevents:
- enabled: true
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 2b28724..9eefe66 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,3 +1,3 @@
spring:
profiles:
- active: @activatedProfile@
+ active: '@activeProfile@'
diff --git a/src/main/resources/db/changelog/2020-06-22T05:48:08Z_changelog.xml b/src/main/resources/db/changelog/2020-06-22T05:48:08Z_changelog.xml
deleted file mode 100644
index dc14b1e..0000000
--- a/src/main/resources/db/changelog/2020-06-22T05:48:08Z_changelog.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/main/resources/db/db.changelog-master.xml b/src/main/resources/db/db.changelog-dev.xml
similarity index 89%
rename from src/main/resources/db/db.changelog-master.xml
rename to src/main/resources/db/db.changelog-dev.xml
index a50025e..9195aab 100644
--- a/src/main/resources/db/db.changelog-master.xml
+++ b/src/main/resources/db/db.changelog-dev.xml
@@ -2,5 +2,5 @@
-
+
diff --git a/src/main/resources/db/db.changelog-prod.xml b/src/main/resources/db/db.changelog-prod.xml
new file mode 100644
index 0000000..c97012a
--- /dev/null
+++ b/src/main/resources/db/db.changelog-prod.xml
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/src/main/resources/db/db.changelog-test.xml b/src/main/resources/db/db.changelog-test.xml
new file mode 100644
index 0000000..881c01d
--- /dev/null
+++ b/src/main/resources/db/db.changelog-test.xml
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/src/main/resources/liquibase.properties b/src/main/resources/liquibase.properties
index fbe4f3f..ffbd5d4 100644
--- a/src/main/resources/liquibase.properties
+++ b/src/main/resources/liquibase.properties
@@ -1,5 +1,12 @@
+
+#### Database properties
url=${liquibase.url}
username=${liquibase.username}
password=${liquibase.password}
driver=com.mysql.cj.jdbc.Driver
-referenceUrl=hibernate:spring:com.pj.liquibasedemo.domain?dialect=org.hibernate.dialect.MySQL8Dialect&hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy&hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
+
+#### Reference database properties
+referenceUrl=${liquibase.referenceUrl}
+referenceDriver=com.mysql.cj.jdbc.Driver
+referenceUsername=${liquibase.referenceUsername}
+referencePassword=${liquibase.referencePassword}