Suppress the Gitlab Schemas Validation
What does this MR do and why?
While testing/running database migrations Gitlab::Database::Migration[2.0]
with (rename_column_concurrently
) the Gitlab::database::QueryAnalyzers::GitlabSchemasValidateConnection::CrossSchemaAccessError
has been raised.
How to set up and validate locally
- Create a database migration with
rename_column_concurrently
- Run the migrations
- Validate that migration is successful
Migration example
# frozen_string_literal: true
class RenameWebHooksServiceIdToIntegrationId < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
def up
rename_column_concurrently :web_hooks, :service_id, :integration_id
end
def down
undo_rename_column_concurrently :web_hooks, :service_id, :integration_id
end
end
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #367254 (closed)
Edited by Bojan Marjanovic