B Migrations: Don't remove activity_visibility_index for now.
This commit is contained in:
parent
10dfa107d5
commit
22878cf84a
1 changed files with 0 additions and 15 deletions
|
@ -22,13 +22,6 @@ defmodule Pleroma.Repo.Migrations.DropUnusedIndexes do
|
||||||
drop_if_exists(
|
drop_if_exists(
|
||||||
index(:activities, ["((data #> '{\"object\",\"likes\"}'))"], name: :activities_likes)
|
index(:activities, ["((data #> '{\"object\",\"likes\"}'))"], name: :activities_likes)
|
||||||
)
|
)
|
||||||
|
|
||||||
drop_if_exists(
|
|
||||||
index(:activities, ["activity_visibility(actor, recipients, data)", "id DESC NULLS LAST"],
|
|
||||||
name: :activities_visibility_index,
|
|
||||||
where: "data->>'type' = 'Create'"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def down do
|
def down do
|
||||||
|
@ -76,13 +69,5 @@ defmodule Pleroma.Repo.Migrations.DropUnusedIndexes do
|
||||||
concurrently: true
|
concurrently: true
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
create_if_not_exists(
|
|
||||||
index(:activities, ["activity_visibility(actor, recipients, data)", "id DESC NULLS LAST"],
|
|
||||||
name: :activities_visibility_index,
|
|
||||||
where: "data->>'type' = 'Create'",
|
|
||||||
concurrently: true
|
|
||||||
)
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue