Pull request #118: RED-2438:

Merge in RED/persistence-service from RED-2438-ps1 to master

* commit '383ce5cce272d03d496a3d759888eeb07947d5a9':
  RED-2438: Implement Liquibase based DB setup and migration
This commit is contained in:
Ali Oezyetimoglu 2021-11-17 18:26:49 +01:00 committed by Timo Bejan
commit 79154a3ef1
4 changed files with 1984 additions and 2 deletions

View File

@ -148,6 +148,11 @@
<artifactId>log4j-slf4j-impl</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>4.3.1</version>
</dependency>
</dependencies>
<build>
<plugins>

View File

@ -20,9 +20,9 @@ spring:
jpa:
database-platform: org.hibernate.dialect.PostgreSQL95Dialect
hibernate:
ddl-auto: update
naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
generate-ddl: true
generate-ddl: false
generate-ddl: false
profiles:
active: kubernetes
@ -41,6 +41,9 @@ spring:
max-interval: 15000
prefetch: 1
liquibase:
change-log: classpath:/db/changelog/db.changelog-master.yaml
management:
endpoint:
metrics.enabled: ${monitoring.enabled:false}

View File

@ -0,0 +1,3 @@
databaseChangeLog:
- include:
file: db/changelog/1-initial-schema.changelog.yaml