projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[#1149] Merge remote-tracking branch 'remotes/upstream/develop' into 1149-oban-job...
[akkoma]
/
priv
/
repo
/
migrations
/
20170415141210_add_unique_index_to_email_and_nickname.exs
diff --git
a/priv/repo/migrations/20170415141210_add_unique_index_to_email_and_nickname.exs
b/priv/repo/migrations/20170415141210_add_unique_index_to_email_and_nickname.exs
index 361ca04daf6297ae12f5579c5102dd8b0991930c..42da88954707afb17e05d0a1322ec692ed09839a 100644
(file)
--- a/
priv/repo/migrations/20170415141210_add_unique_index_to_email_and_nickname.exs
+++ b/
priv/repo/migrations/20170415141210_add_unique_index_to_email_and_nickname.exs
@@
-2,7
+2,7
@@
defmodule Pleroma.Repo.Migrations.AddUniqueIndexToEmailAndNickname do
use Ecto.Migration
def change do
- create unique_index(:users, [:email])
- create unique_index(:users, [:nickname])
+ create
_if_not_exists
unique_index(:users, [:email])
+ create
_if_not_exists
unique_index(:users, [:nickname])
end
end