X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20211126191138_add_suggestions.exs;h=7cc67d8ef2c54d9035e107cb2d90babdb487ce92;hb=eb9ef59d507ac9416f3e1a7779276d51a7c0a63a;hp=5ad604e9da35e9bc7b787f3bc066c4c62a00ac41;hpb=b17360cd7c92d8b2337fa4fd175c3e1312eb352e;p=akkoma diff --git a/priv/repo/migrations/20211126191138_add_suggestions.exs b/priv/repo/migrations/20211126191138_add_suggestions.exs index 5ad604e9d..7cc67d8ef 100644 --- a/priv/repo/migrations/20211126191138_add_suggestions.exs +++ b/priv/repo/migrations/20211126191138_add_suggestions.exs @@ -5,5 +5,7 @@ defmodule Pleroma.Repo.Migrations.AddSuggestions do alter table(:users) do add(:is_suggested, :boolean, default: false, null: false) end + + create_if_not_exists(index(:users, [:is_suggested])) end end