From 461b8b72b5f68e7e0ea0abdda8a01ef20c18532d Mon Sep 17 00:00:00 2001 From: Lathish Date: Wed, 23 Feb 2022 10:49:41 +0000 Subject: Update ACM Schema in db migrator Issue-ID: POLICY-3944 Change-Id: If22c95d0fae99e6312ca7b079a5663476d3e06f0 Signed-off-by: Lathish --- csit/config/clamp/AcRuntimeParameters.yaml | 2 +- csit/config/db/db.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/csit/config/clamp/AcRuntimeParameters.yaml b/csit/config/clamp/AcRuntimeParameters.yaml index f17d3eb6..40031828 100644 --- a/csit/config/clamp/AcRuntimeParameters.yaml +++ b/csit/config/clamp/AcRuntimeParameters.yaml @@ -7,7 +7,7 @@ spring: converters: preferred-json-mapper: gson datasource: - url: jdbc:mariadb://${mariadb.host:mariadb}:${mariadb.port:3306}/clamp-acm + url: jdbc:mariadb://${mariadb.host:mariadb}:${mariadb.port:3306}/clampacm driverClassName: org.mariadb.jdbc.Driver username: policy_user password: policy_user diff --git a/csit/config/db/db.sh b/csit/config/db/db.sh index 7cc94fdb..d1300091 100755 --- a/csit/config/db/db.sh +++ b/csit/config/db/db.sh @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -for db in migration pooling policyadmin operationshistory controlloop +for db in migration pooling policyadmin operationshistory clampacm do mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" --execute "CREATE DATABASE IF NOT EXISTS ${db};" mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" --execute "GRANT ALL PRIVILEGES ON \`${db}\`.* TO '${MYSQL_USER}'@'%' ;" -- cgit 1.2.3-korg