Skip to content

Commit

Permalink
Disable DB migration on pipeline, instead run on app startup
Browse files Browse the repository at this point in the history
  • Loading branch information
sabahirfan committed Nov 13, 2023
1 parent 8573f19 commit 1c103cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ def product = "opal"
def component = "account-enquiry"

withPipeline(type, product, component) {
enableDbMigration(product)
}
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1c103cc

Please sign in to comment.