summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-server/src/main/resources/application.properties
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-08-01 21:51:18 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-08-03 11:55:10 +0200
commitacfab9d4ca84e9331bb40c74d300c593915c542a (patch)
treef1f8f8c323a958658e04c21ec8bc363c9f8c4fb2 /opendc-web/opendc-web-server/src/main/resources/application.properties
parenta01f964b531f12fd89cbdb0f2132aecbfaebf546 (diff)
feat(web/server): Implement database migrations using Flyway
This change updates the Quarkus-based web server to use Flyway for migrating between schema versions. This enables us to evolve the schema and denote it in SQL.
Diffstat (limited to 'opendc-web/opendc-web-server/src/main/resources/application.properties')
-rw-r--r--opendc-web/opendc-web-server/src/main/resources/application.properties4
1 files changed, 4 insertions, 0 deletions
diff --git a/opendc-web/opendc-web-server/src/main/resources/application.properties b/opendc-web/opendc-web-server/src/main/resources/application.properties
index d0b567e5..40933304 100644
--- a/opendc-web/opendc-web-server/src/main/resources/application.properties
+++ b/opendc-web/opendc-web-server/src/main/resources/application.properties
@@ -42,3 +42,7 @@ quarkus.smallrye-openapi.info-license-url=https://github.com/atlarge-research/op
quarkus.swagger-ui.path=docs
quarkus.swagger-ui.always-include=true
+
+# Flyway database migrations
+quarkus.flyway.baseline-on-migrate=true
+quarkus.flyway.migrate-at-start=true