Fix stop emoji reaction streaming to user settings
This commit is contained in:
parent
7d237611d9
commit
dbc34a8213
16 changed files with 55 additions and 19 deletions
|
@ -1,6 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddMinEmojisToAccountStatusesCleanupPolicies < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :account_statuses_cleanup_policies, :min_emojis, :integer
|
||||
add_column :account_statuses_cleanup_policies, :keep_self_emoji, :boolean, default: true, null: false
|
||||
change_table :account_statuses_cleanup_policies, bulk: true do |t|
|
||||
t.integer :min_emojis
|
||||
t.boolean :keep_self_emoji, default: true, null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
|
||||
class AddDissubscribableToAccounts < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :antennas, :with_media_only, :boolean, null: false, default: false
|
||||
add_index :antennas, :with_media_only
|
||||
add_column :accounts, :dissubscribable, :boolean, null: false, default: false
|
||||
safety_assured do
|
||||
add_column :antennas, :with_media_only, :boolean, null: false, default: false
|
||||
add_index :antennas, :with_media_only
|
||||
add_column :accounts, :dissubscribable, :boolean, null: false, default: false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddRejectFavouriteToDomainBlocks < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :domain_blocks, :reject_favourite, :boolean, null: false, default: false
|
||||
add_column :domain_blocks, :reject_reply, :boolean, null: false, default: false
|
||||
change_table :domain_blocks, bulk: true do |t|
|
||||
t.boolean :reject_favourite, null: false, default: false
|
||||
t.boolean :reject_reply, null: false, default: false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddEmojiReactionStreamingToAccounts < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :accounts, :stop_emoji_reaction_streaming, :boolean, default: false
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveStopEmojiReactionStreamingFromAccounts < ActiveRecord::Migration[6.1]
|
||||
def up
|
||||
safety_assured do
|
||||
remove_column :accounts, :stop_emoji_reaction_streaming
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
safety_assured do
|
||||
add_column :accounts, :stop_emoji_reaction_streaming, :boolean, null: true, default: false
|
||||
end
|
||||
end
|
||||
end
|
|
@ -12,7 +12,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2023_05_10_000439) do
|
||||
ActiveRecord::Schema.define(version: 2023_05_10_004621) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -194,7 +194,6 @@ ActiveRecord::Schema.define(version: 2023_05_10_000439) do
|
|||
t.boolean "group_allow_private_message"
|
||||
t.integer "searchability", default: 2, null: false
|
||||
t.boolean "dissubscribable", default: false, null: false
|
||||
t.boolean "stop_emoji_reaction_streaming", default: false
|
||||
t.index "(((setweight(to_tsvector('simple'::regconfig, (display_name)::text), 'A'::\"char\") || setweight(to_tsvector('simple'::regconfig, (username)::text), 'B'::\"char\")) || setweight(to_tsvector('simple'::regconfig, (COALESCE(domain, ''::character varying))::text), 'C'::\"char\")))", name: "search_index", using: :gin
|
||||
t.index "lower((username)::text), COALESCE(lower((domain)::text), ''::text)", name: "index_accounts_on_username_and_domain_lower", unique: true
|
||||
t.index ["moved_to_account_id"], name: "index_accounts_on_moved_to_account_id", where: "(moved_to_account_id IS NOT NULL)"
|
||||
|
@ -1484,4 +1483,4 @@ ActiveRecord::Schema.define(version: 2023_05_10_000439) do
|
|||
|
||||
end
|
||||
|
||||
# rubocop:enable all
|
||||
#rubocop:enable all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue