From 252091c9ee256e54a2b0bf7c4ef1efa4ec7555f8 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Fri, 17 Jul 2020 22:09:17 -0500 Subject: [Database] Add schema changes for nest level and indirect federation --- db/schema.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'db') diff --git a/db/schema.rb b/db/schema.rb index eca595c82..beec07767 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2020_07_06_171939) do +ActiveRecord::Schema.define(version: 2020_07_18_011317) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -182,6 +182,7 @@ ActiveRecord::Schema.define(version: 2020_07_06_171939) do t.integer "avatar_storage_schema_version" t.integer "header_storage_schema_version" t.string "devices_url" + t.boolean "require_dereference", default: false, null: 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" @@ -786,6 +787,7 @@ ActiveRecord::Schema.define(version: 2020_07_06_171939) do t.string "content_type" t.datetime "deleted_at" t.integer "edited", default: 0, null: false + t.integer "nest_level", limit: 2, default: 0, null: false t.index ["account_id", "id", "visibility", "updated_at"], name: "index_statuses_20190820", order: { id: :desc }, where: "(deleted_at IS NULL)" t.index ["conversation_id"], name: "index_statuses_on_conversation_id", where: "(deleted_at IS NULL)" t.index ["id", "account_id"], name: "index_statuses_local_20190824", 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)))" -- cgit