X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20181206125616_add_tags_to_users.exs;h=a46c0fc35acd50d01509e9a778b4d0e065dfe4d4;hb=cc4c5f22f4e6946c40bfc4c9517eaeb28f39a27d;hp=1502f63b6b62e1aa674ea887f673b06d9ab02add;hpb=89fbed88212657e3dcd4bbcb2c0718b07802037f;p=akkoma diff --git a/priv/repo/migrations/20181206125616_add_tags_to_users.exs b/priv/repo/migrations/20181206125616_add_tags_to_users.exs index 1502f63b6..a46c0fc35 100644 --- a/priv/repo/migrations/20181206125616_add_tags_to_users.exs +++ b/priv/repo/migrations/20181206125616_add_tags_to_users.exs @@ -3,9 +3,9 @@ defmodule Pleroma.Repo.Migrations.AddTagsToUsers do def change do alter table(:users) do - add :tags, {:array, :string} + add(:tags, {:array, :string}) end - create index(:users, [:tags], using: :gin) + create_if_not_exists(index(:users, [:tags], using: :gin)) end end