diff options
author | aravind.est <aravindhan.a@est.tech> | 2024-08-16 12:50:52 +0100 |
---|---|---|
committer | aravind.est <aravindhan.a@est.tech> | 2024-08-19 13:53:29 +0100 |
commit | fdfb070d8a5139963fa02e59814855b8b19576a3 (patch) | |
tree | 0e43340dc375533f1af29a1c86f29de2b9addc2c /a1-policy-management/config | |
parent | b15c0ce6de0a226a5850977af717ef0b85d3c759 (diff) |
Add database migration configuration
Database migration added.
Issue-ID: CCSDK-4033
Change-Id: Ib7dc38826a4547a62bcd4839bf212758955b3d38
Signed-off-by: aravind.est <aravindhan.a@est.tech>
Diffstat (limited to 'a1-policy-management/config')
-rw-r--r-- | a1-policy-management/config/application.yaml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/a1-policy-management/config/application.yaml b/a1-policy-management/config/application.yaml index 3ef68023..9dcfc338 100644 --- a/a1-policy-management/config/application.yaml +++ b/a1-policy-management/config/application.yaml @@ -3,6 +3,7 @@ # ONAP : ccsdk oran # ================================================================================ # Copyright (C) 2020-2023 Nordix Foundation. All rights reserved. +# Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,9 +30,21 @@ spring: aop: auto: false r2dbc: + # Configuration of the postgres database to be used by the application. + # These values can be passed via configmap/secret/env variable based on the installation. url: "r2dbc:postgresql://127.0.0.1:5432/a1pms" username: a1pms password: mypwd + flyway: + # Configuration of the postgres database to be used for database migration. + # This is where the flyway maintains the information about the sql files loaded. + # These values can be passed via configmap/secret/env variable based on the installation. + # By default, Flyway uses location classpath:db/migration to load the sql files. + # This can be overridden using "flyway.locations" to have a different location. + url: "jdbc:postgresql://127.0.0.1:5432/a1pms" + user: a1pms + password: mypwd + baseline-on-migrate: true management: tracing: propagation: @@ -111,6 +124,9 @@ app: accessKeyId: minio secretAccessKey: miniostorage bucket: + # Postgres database usage is enabled using the below parameter. + # If this is enabled, the application will use postgres database for storage. + # This overrides the s3(s3.bucket) or file store(vardata-directory) configuration if enabled. database-enabled: false otel: sdk: |