Add index to objects.
authorRoger Braun <roger@rogerbraun.net>
Thu, 30 Mar 2017 16:06:43 +0000 (18:06 +0200)
committerRoger Braun <roger@rogerbraun.net>
Thu, 30 Mar 2017 16:06:43 +0000 (18:06 +0200)
priv/repo/migrations/20170330153447_add_index_to_objects.exs [new file with mode: 0644]

diff --git a/priv/repo/migrations/20170330153447_add_index_to_objects.exs b/priv/repo/migrations/20170330153447_add_index_to_objects.exs
new file mode 100644 (file)
index 0000000..30ed61f
--- /dev/null
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.AddIndexToObjects do
+  use Ecto.Migration
+
+  def change do
+    create index(:objects, [:data], using: :gin)
+  end
+end