Skip to content

Draft: [RUN ALL RSPEC] Automatically create gitlab_ci schema on db:test:prepare

Thong Kuah requested to merge gitlab_ci_schema_in_test into master

What does this MR do?

Automatically create gitlab_ci schema on db:test:prepare.

We enhance db:test:prepare to automatically create gitlab_ci schema, and move certain tables to that schema. This only happens in test environment. This can be disabled, which is especially useful while we transition GDK to have the right search path.

For convenience/testing there is a rake task to do the same in development environment.

Warns if your schema search path does not contain gitlab_ci.

More tables will be migrated as part of &6451 (closed) epic

Related issue: #337813 (closed)

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Thong Kuah

Merge request reports