diff options
Diffstat (limited to 'db/post_migrate/20221124153602_add_supporting_index_for_vulnerabilities_feedback_comment_proccessing.rb')
-rw-r--r-- | db/post_migrate/20221124153602_add_supporting_index_for_vulnerabilities_feedback_comment_proccessing.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/db/post_migrate/20221124153602_add_supporting_index_for_vulnerabilities_feedback_comment_proccessing.rb b/db/post_migrate/20221124153602_add_supporting_index_for_vulnerabilities_feedback_comment_proccessing.rb deleted file mode 100644 index 71f48e22b52..00000000000 --- a/db/post_migrate/20221124153602_add_supporting_index_for_vulnerabilities_feedback_comment_proccessing.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true - -class AddSupportingIndexForVulnerabilitiesFeedbackCommentProccessing < Gitlab::Database::Migration[2.0] - INDEX_NAME = "tmp_idx_for_feedback_comment_processing" - WHERE_CLAUSE = "char_length(comment) > 50000" - - disable_ddl_transaction! - - def up - add_concurrent_index( - :vulnerability_feedback, - :id, - where: WHERE_CLAUSE, - name: INDEX_NAME - ) - end - - def down - remove_concurrent_index_by_name( - :vulnerability_feedback, - INDEX_NAME - ) - end -end |