From 1c103cc367599ba66e3395cd9363a1f04275235b Mon Sep 17 00:00:00 2001 From: Sabah Irfan Date: Mon, 13 Nov 2023 10:27:39 +0000 Subject: [PATCH] Disable DB migration on pipeline, instead run on app startup --- Jenkinsfile_CNP | 1 - src/main/resources/application.yaml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile_CNP b/Jenkinsfile_CNP index 4737ed688..469feb60c 100644 --- a/Jenkinsfile_CNP +++ b/Jenkinsfile_CNP @@ -7,5 +7,4 @@ def product = "opal" def component = "account-enquiry" withPipeline(type, product, component) { - enableDbMigration(product) } diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 45e9ed0d4..77c979451 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -45,7 +45,7 @@ spring: dbMigration: # When true, the app will run DB migration on startup. # Otherwise, it will just check if all migrations have been applied (and fail to start if not). - runOnStartup: ${RUN_DB_MIGRATION_ON_STARTUP:true} + runOnStartup: ${RUN_DB_MIGRATION_ON_STARTUP:false} azure: application-insights: