ignore `tsv` column & add index to local-scope posts
parent
09eb7fb78d
commit
037be68060
|
@ -23,7 +23,6 @@
|
|||
# in_reply_to_account_id :bigint(8)
|
||||
# local_only :boolean
|
||||
# poll_id :bigint(8)
|
||||
# tsv :tsvector
|
||||
# curated :boolean default(FALSE), not null
|
||||
# sharekey :string
|
||||
# network :boolean default(FALSE), not null
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2019_05_21_003909) do
|
||||
ActiveRecord::Schema.define(version: 2019_07_14_172721) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -658,7 +658,6 @@ ActiveRecord::Schema.define(version: 2019_05_21_003909) do
|
|||
t.bigint "in_reply_to_account_id"
|
||||
t.boolean "local_only"
|
||||
t.bigint "poll_id"
|
||||
t.tsvector "tsv"
|
||||
t.boolean "curated", default: false, null: false
|
||||
t.string "sharekey"
|
||||
t.boolean "network", default: false, null: false
|
||||
|
@ -668,12 +667,12 @@ ActiveRecord::Schema.define(version: 2019_05_21_003909) do
|
|||
t.boolean "imported"
|
||||
t.string "origin"
|
||||
t.index ["account_id", "id", "visibility", "updated_at"], name: "index_statuses_20180106", order: { id: :desc }
|
||||
t.index ["account_id", "id", "visibility"], name: "index_statuses_on_account_id_and_id_and_visibility", where: "(visibility = ANY (ARRAY[0, 1, 2, 4, 5]))"
|
||||
t.index ["in_reply_to_account_id"], name: "index_statuses_on_in_reply_to_account_id"
|
||||
t.index ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id"
|
||||
t.index ["network"], name: "index_statuses_on_network", where: "network"
|
||||
t.index ["origin"], name: "index_statuses_on_origin", unique: true
|
||||
t.index ["reblog_of_id", "account_id"], name: "index_statuses_on_reblog_of_id_and_account_id"
|
||||
t.index ["tsv"], name: "tsv_idx", using: :gin
|
||||
t.index ["uri"], name: "index_statuses_on_uri", unique: true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue