Add option to modify HTTP pool size
[akkoma] / priv / repo / migrations / 20190603173419_add_tag_index_to_objects.exs
1 defmodule Pleroma.Repo.Migrations.AddTagIndexToObjects do
2 use Ecto.Migration
3
4 def change do
5 drop_if_exists(
6 index(:activities, ["(data #> '{\"object\",\"tag\"}')"], using: :gin, name: :activities_tags)
7 )
8
9 create_if_not_exists(index(:objects, ["(data->'tag')"], using: :gin, name: :objects_tags))
10 end
11 end