Skip to content

Verify check constraint existence before removing

What does this MR do?

Verify check constraint existence before removing it

This change fixes the has_external_wiki not null check constraint removal by checking if the constraint exists before removing it. The existence check happens outside of the constraint removal statement, so it should not be blocked.

Note: the check constraint does not exist on production.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Adam Hegyi

Merge request reports