Skip to content

Commit

Permalink
Run stack_check after DB migrations and seeds (#453)
Browse files Browse the repository at this point in the history
Running the stack_check before the initial DB setup fails, as it waits for the database schema to be current (Sequel::Migrator.is_current?).
  • Loading branch information
philippthun committed Aug 7, 2024
1 parent f780015 commit f445c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/cloud_controller_ng/templates/pre-start.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ function main {
start_bosh_dns_or_consul
setup_directories
<% if spec.bootstrap && p('cc.run_prestart_migrations') %>
stack_check
perform_migration
seed_db
<% if p('cc.database_encryption.skip_validation') %>
echo "Skipping DB encryption validation"
<% else %>
validate_encryption_keys
<% end %>
stack_check
<% else %>
echo "Skipping DB migrations and seeds"
<% end %>
Expand Down

0 comments on commit f445c39

Please sign in to comment.