summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2023-06-11 16:22:16 +0400
committerLain Soykaf <lain@lain.com>2023-06-11 16:22:16 +0400
commit22878cf84afd3f8b844c66e99f37022318c4c55e (patch)
treefb50b3e10cbdcb48bc63893b660c85422e4c87d7 /priv
parent10dfa107d5d5d3b6fa7c13eb005c4cd5b6b94661 (diff)
B Migrations: Don't remove activity_visibility_index for now.
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20230422154018_drop_unused_indexes.exs15
1 files changed, 0 insertions, 15 deletions
diff --git a/priv/repo/migrations/20230422154018_drop_unused_indexes.exs b/priv/repo/migrations/20230422154018_drop_unused_indexes.exs
index f2ba6b8df..0d877a798 100644
--- a/priv/repo/migrations/20230422154018_drop_unused_indexes.exs
+++ b/priv/repo/migrations/20230422154018_drop_unused_indexes.exs
@@ -22,13 +22,6 @@ defmodule Pleroma.Repo.Migrations.DropUnusedIndexes do
drop_if_exists(
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
def down do
@@ -76,13 +69,5 @@ defmodule Pleroma.Repo.Migrations.DropUnusedIndexes do
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