Commit e7f40aa5 authored by Thong Kuah's avatar Thong Kuah

Configure db/structure dump to dump all schemas

This restores behaviour when reloading of schema from dev to test to be
the same when schema_search_path is set compared to when it is not set.

https://gitlab.com/gitlab-org/gitlab/-/issues/337813
parent 076b96b6
......@@ -168,6 +168,11 @@ module Gitlab
# like if you have constraints or database-specific column types
config.active_record.schema_format = :sql
# Dump all DB schemas even if schema_search_path is defined,
# so that we get the same db/structure.sql
# regardless if schema_search_path is set, or not.
config.active_record.dump_schemas = :all
# Use new connection handling so that we can use Rails 6.1+ multiple
# database support.
config.active_record.legacy_connection_handling = false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment