A platform for community discussion. Free, open, simple.
DEV: Drop search index on non-pm posts take 2.
Guo Xiang Tanf4a0d200eeac
diff --git a/db/migrate/20200820232017_drop_idx_regular_post_search_data.rb b/db/migrate/20200820232017_drop_idx_regular_post_search_data.rbindex c61920c6a7c..a7e0dfff8c0 100644--- a/db/migrate/20200820232017_drop_idx_regular_post_search_data.rb+++ b/db/migrate/20200820232017_drop_idx_regular_post_search_data.rb@@ -1,4 +1,8 @@+# frozen_string_literal: true+class DropIdxRegularPostSearchData < ActiveRecord::Migration[6.0]+ disable_ddl_transaction!+def upexecute <<~SQLDROP INDEX CONCURRENTLY IF EXISTS idx_regular_post_search_data