Fix TRIGGER checks for MySQL
What does this MR do?
This fixes the problem described in https://gitlab.com/gitlab-org/gitlab-ce/issues/38372.
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Tests added for this feature/bug - Review
-
Has been reviewed by Database
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together