projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'remotes/origin/develop' into 1560-non-federating-instan...
[akkoma]
/
priv
/
repo
/
migrations
/
20190123125546_create_instances.exs
diff --git
a/priv/repo/migrations/20190123125546_create_instances.exs
b/priv/repo/migrations/20190123125546_create_instances.exs
index a9b356bc35628b92c3bf1802accfb79eab0410b8..9438736baa42a2a781eeefc4c41a99305065a3a1 100644
(file)
--- a/
priv/repo/migrations/20190123125546_create_instances.exs
+++ b/
priv/repo/migrations/20190123125546_create_instances.exs
@@
-3,13
+3,13
@@
defmodule Pleroma.Repo.Migrations.CreateInstances do
def change do
create_if_not_exists table(:instances) do
def change do
create_if_not_exists table(:instances) do
- add
:host, :string
- add
:unreachable_since, :naive_datetime_usec
+ add
(:host, :string)
+ add
(:unreachable_since, :naive_datetime_usec)
timestamps()
end
timestamps()
end
- create_if_not_exists
unique_index(:instances, [:host]
)
- create_if_not_exists
index(:instances, [:unreachable_since]
)
+ create_if_not_exists
(unique_index(:instances, [:host])
)
+ create_if_not_exists
(index(:instances, [:unreachable_since])
)
end
end
end
end