mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-20 17:23:17 +00:00
Implement FEP 7888: Part 1 - publish conversation context (#35959)
This commit is contained in:
parent
9463a31107
commit
65b4a0a6f1
15 changed files with 309 additions and 12 deletions
|
|
@ -0,0 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddParentStatusAndParentAccountToConversations < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_column :conversations, :parent_status_id, :bigint, null: true, default: nil
|
||||
add_column :conversations, :parent_account_id, :bigint, null: true, default: nil
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddIndexOnConversationToStatuses < ActiveRecord::Migration[8.0]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_index :statuses, :conversation_id, algorithm: :concurrently
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue