summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20180829182612_activities_add_to_cc_indices.exs
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-08-29 18:38:51 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-08-29 18:41:02 +0000
commit1a70d41f8e7ce0eb30242d58077b69816e443c10 (patch)
treeb53f711bfa833e696cb96f8f0960d365a1860aae /priv/repo/migrations/20180829182612_activities_add_to_cc_indices.exs
parent29b5e30c465ccb29465156d66eba02e6c0ef846f (diff)
downloadpleroma-1a70d41f8e7ce0eb30242d58077b69816e443c10.tar.gz
pleroma-1a70d41f8e7ce0eb30242d58077b69816e443c10.zip
migrations: add index creation migration and recipients_to/cc removal migration
Diffstat (limited to 'priv/repo/migrations/20180829182612_activities_add_to_cc_indices.exs')
-rw-r--r--priv/repo/migrations/20180829182612_activities_add_to_cc_indices.exs8
1 files changed, 8 insertions, 0 deletions
diff --git a/priv/repo/migrations/20180829182612_activities_add_to_cc_indices.exs b/priv/repo/migrations/20180829182612_activities_add_to_cc_indices.exs
new file mode 100644
index 000000000..f6c622e3e
--- /dev/null
+++ b/priv/repo/migrations/20180829182612_activities_add_to_cc_indices.exs
@@ -0,0 +1,8 @@
+defmodule Pleroma.Repo.Migrations.ActivitiesAddToCcIndices do
+ use Ecto.Migration
+
+ def change do
+ create index(:activities, ["(data->'to')"], name: :activities_to_index, using: :gin)
+ create index(:activities, ["(data->'cc')"], name: :activities_cc_index, using: :gin)
+ end
+end