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
/
20170506222027_add_unique_index_to_apid.exs
diff --git
a/priv/repo/migrations/20170506222027_add_unique_index_to_apid.exs
b/priv/repo/migrations/20170506222027_add_unique_index_to_apid.exs
index 864b5e47dab81fb64ee94c6163d2e2e40e8f67d0..80f50029a33dc17383a305e2b4b83e56dd7d75df 100644
(file)
--- a/
priv/repo/migrations/20170506222027_add_unique_index_to_apid.exs
+++ b/
priv/repo/migrations/20170506222027_add_unique_index_to_apid.exs
@@
-2,6
+2,6
@@
defmodule Pleroma.Repo.Migrations.AddUniqueIndexToAPID do
use Ecto.Migration
def change do
- create
unique_index(:users, [:ap_id]
)
+ create
_if_not_exists(unique_index(:users, [:ap_id])
)
end
end