diff options
Diffstat (limited to 'db/post_migrate/20221019195754_disable_fastupdate_on_issues_description_gin_index.rb')
-rw-r--r-- | db/post_migrate/20221019195754_disable_fastupdate_on_issues_description_gin_index.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/db/post_migrate/20221019195754_disable_fastupdate_on_issues_description_gin_index.rb b/db/post_migrate/20221019195754_disable_fastupdate_on_issues_description_gin_index.rb deleted file mode 100644 index 8822cb3b414..00000000000 --- a/db/post_migrate/20221019195754_disable_fastupdate_on_issues_description_gin_index.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true - -class DisableFastupdateOnIssuesDescriptionGinIndex < Gitlab::Database::Migration[2.0] - disable_ddl_transaction! - - INDEX_NAME = 'index_issues_on_description_trigram' - - def up - return unless index_exists_by_name?(:issues, INDEX_NAME) - - with_lock_retries do - execute <<~SQL - ALTER INDEX #{INDEX_NAME} SET ( fastupdate = false ) ; - SQL - end - end - - def down - return unless index_exists_by_name?(:issues, INDEX_NAME) - - with_lock_retries do - execute <<~SQL - ALTER INDEX #{INDEX_NAME} RESET ( fastupdate ) ; - SQL - end - end -end |