diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-03-30 18:06:43 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-03-30 18:06:43 +0200 |
commit | 40eb0e4c24b74e608f11f9f77d9ef2d843641014 (patch) | |
tree | bcad3197f12de2bb5ac2d07b0f7b6314a6b55c8c /priv/repo/migrations/20170330153447_add_index_to_objects.exs | |
parent | 73df2f8e5e2d0e2b125df8848c2dd7f2a73f1c03 (diff) | |
download | pleroma-40eb0e4c24b74e608f11f9f77d9ef2d843641014.tar.gz pleroma-40eb0e4c24b74e608f11f9f77d9ef2d843641014.zip |
Add index to objects.
Diffstat (limited to 'priv/repo/migrations/20170330153447_add_index_to_objects.exs')
-rw-r--r-- | priv/repo/migrations/20170330153447_add_index_to_objects.exs | 7 |
1 files changed, 7 insertions, 0 deletions
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 index 000000000..30ed61f51 --- /dev/null +++ b/priv/repo/migrations/20170330153447_add_index_to_objects.exs @@ -0,0 +1,7 @@ +defmodule Pleroma.Repo.Migrations.AddIndexToObjects do + use Ecto.Migration + + def change do + create index(:objects, [:data], using: :gin) + end +end |