Allow ClickHouse migrations to be skipped

What does this MR do and why?

This MR fixes Unable to skip ClickHouse migrations (#581777) where configured ClickHouse YML without an existing ClickHouse DB fails the gitlab:db:configure task.

The fix is an optional environment variable: SKIP_CLICKHOUSE_MIGRATIONS.

Running the rake task with the env variable will not invoke ClickHouse migrations:

SKIP_CLICKHOUSE_MIGRATIONS=true bundle exec rake gitlab:db:configure

References

Unable to skip ClickHouse migrations (#581777)

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #581777

Edited by Adam Hegyi

Merge request reports

Loading