X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20181206125616_add_tags_to_users.exs;h=a46c0fc35acd50d01509e9a778b4d0e065dfe4d4;hb=58f75ac062aa54a139125c1742f3fe59563a345b;hp=1502f63b6b62e1aa674ea887f673b06d9ab02add;hpb=7d86c0c53f6377119581ddc9e9dfe5c0937ffe01;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