projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'develop' into issue/1276-2
[akkoma]
/
priv
/
repo
/
migrations
/
20181206125616_add_tags_to_users.exs
diff --git
a/priv/repo/migrations/20181206125616_add_tags_to_users.exs
b/priv/repo/migrations/20181206125616_add_tags_to_users.exs
index 1502f63b6b62e1aa674ea887f673b06d9ab02add..a46c0fc35acd50d01509e9a778b4d0e065dfe4d4 100644
(file)
--- 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