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 1c103cc commit 5f839b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/opal-account-enquiry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ java:
- name: account-enquiry-POSTGRES-PASS
alias: OPAL_DB_PASSWORD
- name: account-enquiry-POSTGRES-PORT
alias: OPAL_DB_PORT
alias: OPAL_DB_PORT
- name: account-enquiry-POSTGRES-USER
alias: OPAL_DB_USERNAME
- name: account-enquiry-POSTGRES-DATABASE
alias: OPAL_DB_NAME
environment:
RUN_DB_MIGRATION_ON_STARTUP: false
RUN_DB_MIGRATION_ON_STARTUP: true
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:false}
runOnStartup: ${RUN_DB_MIGRATION_ON_STARTUP:true}

azure:
application-insights:
Expand Down

0 comments on commit 5f839b9

Please sign in to comment.