@ -4,12 +4,12 @@ class UpdateStatusesIndex < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
defup
safety_assured{add_index:statuses,[:account_id,:id,:visibility,:updated_at],where:'deleted_at IS NULL',order:{id::desc},algorithm::concurrently,name::index_statuses_20190820}
safety_assured{add_index:statuses,[:account_id,:id,:visibility,:updated_at],where:'deleted_at IS NULL',order:{id::desc},algorithm::concurrently,name::index_statuses_20190820}# rubocop:disable Naming/VariableNumber
@ -4,10 +4,10 @@ class AddLocalIndexToStatuses < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
defup
add_index:statuses,[:id,:account_id],name::index_statuses_local_20190824,algorithm::concurrently,order:{id::desc},where:'(local OR (uri IS NULL)) AND deleted_at IS NULL AND visibility = 0 AND reblog_of_id IS NULL AND ((NOT reply) OR (in_reply_to_account_id = account_id))'
add_index:statuses,[:id,:account_id],name::index_statuses_local_20190824,algorithm::concurrently,order:{id::desc},where:'(local OR (uri IS NULL)) AND deleted_at IS NULL AND visibility = 0 AND reblog_of_id IS NULL AND ((NOT reply) OR (in_reply_to_account_id = account_id))'# rubocop:disable Naming/VariableNumber
@ -4,10 +4,10 @@ class AddPublicIndexToStatuses < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
defup
add_index:statuses,[:id,:account_id],name::index_statuses_public_20200119,algorithm::concurrently,order:{id::desc},where:'deleted_at IS NULL AND visibility = 0 AND reblog_of_id IS NULL AND ((NOT reply) OR (in_reply_to_account_id = account_id))'
add_index:statuses,[:id,:account_id],name::index_statuses_public_20200119,algorithm::concurrently,order:{id::desc},where:'deleted_at IS NULL AND visibility = 0 AND reblog_of_id IS NULL AND ((NOT reply) OR (in_reply_to_account_id = account_id))'# rubocop:disable Naming/VariableNumber