chore(db): add flyway migration tool (#48)
All checks were successful
CI / Maven unit tests (push) Successful in 14s
CI / Build and push images (push) Successful in 4m1s
CI / Deploy to server (push) Successful in 24s

Reviewed-on: #48
This commit was merged in pull request #48.
This commit is contained in:
2026-09-29 19:26:45 +01:00
parent bd3d99e801
commit daa6c04f76
3 changed files with 22 additions and 7 deletions

View File

@@ -10,10 +10,13 @@ spring.datasource.url=${POSTGRES_URL}
spring.datasource.username=${POSTGRES_USER}
spring.datasource.password=${POSTGRES_PASSWORD}
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.hibernate.ddl-auto=update
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.show-sql=false
spring.sql.init.mode=always
spring.sql.init.schema-locations=classpath:db/schema.sql
spring.flyway.enabled=true
spring.flyway.locations=classpath:db/migrations
spring.flyway.baseline-on-migrate=true
spring.flyway.baseline-version=1
## Security
spring.security.oauth2.client.registration.google.client-id=${GOOGLE_CLIENT_ID}