about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-17 22:09:17 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:43:08 -0500
commit252091c9ee256e54a2b0bf7c4ef1efa4ec7555f8 (patch)
tree1e0f09514c60443958626fe8aeda1c47ba73c066 /db
parent28be38e40c6d56fd7bc0b0c98a3b76609e70b903 (diff)
[Database] Add schema changes for nest level and indirect federation
Diffstat (limited to 'db')
-rw-r--r--db/schema.rb4
1 files changed, 3 insertions, 1 deletions
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)))"