Skip to content

Add cop to prevent index creation on forbidden table

Max Orefice requested to merge mo-add-cop-preventing-index-creation into master

Ref: #332886 (closed)

What does this MR do?

This MR adds a new custom cop allowing us to prevent index creation on a given table.

The first table forbidden targeted is ci_builds and will only affect new code being added.

Why are we doing this?

As part of Reducing number of indexes on ci_builds table, we should prevent adding new indexes to this table.

Does this MR meet the acceptance criteria?

Conformity

Edited by Max Orefice

Merge request reports