RED-2438:
Implement Liquibase based DB setup and migration
This commit is contained in:
parent
10a71f053c
commit
383ce5cce2
@ -148,6 +148,11 @@
|
|||||||
<artifactId>log4j-slf4j-impl</artifactId>
|
<artifactId>log4j-slf4j-impl</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.liquibase</groupId>
|
||||||
|
<artifactId>liquibase-core</artifactId>
|
||||||
|
<version>4.3.1</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|||||||
@ -20,9 +20,9 @@ spring:
|
|||||||
jpa:
|
jpa:
|
||||||
database-platform: org.hibernate.dialect.PostgreSQL95Dialect
|
database-platform: org.hibernate.dialect.PostgreSQL95Dialect
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: update
|
|
||||||
naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
|
naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
|
||||||
generate-ddl: true
|
generate-ddl: false
|
||||||
|
generate-ddl: false
|
||||||
|
|
||||||
profiles:
|
profiles:
|
||||||
active: kubernetes
|
active: kubernetes
|
||||||
@ -41,6 +41,9 @@ spring:
|
|||||||
max-interval: 15000
|
max-interval: 15000
|
||||||
prefetch: 1
|
prefetch: 1
|
||||||
|
|
||||||
|
liquibase:
|
||||||
|
change-log: classpath:/db/changelog/db.changelog-master.yaml
|
||||||
|
|
||||||
management:
|
management:
|
||||||
endpoint:
|
endpoint:
|
||||||
metrics.enabled: ${monitoring.enabled:false}
|
metrics.enabled: ${monitoring.enabled:false}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,3 @@
|
|||||||
|
databaseChangeLog:
|
||||||
|
- include:
|
||||||
|
file: db/changelog/1-initial-schema.changelog.yaml
|
||||||
Loading…
x
Reference in New Issue
Block a user