diff options
author | href <href+git-pleroma@random.sh> | 2019-02-01 09:14:35 +0000 |
---|---|---|
committer | href <href+git-pleroma@random.sh> | 2019-02-01 09:14:35 +0000 |
commit | b3b0855456a92351667a50c8ea77f328bded76ca (patch) | |
tree | 329d20c3eb8279caf01e0fb1ffbb0d08ae406f87 /priv/repo/migrations | |
parent | 0340fcaecadae858b9c8fe39cc18bc25aef3e495 (diff) | |
parent | 92753b0cd9cfcdc5edb64a5e55ad27f73079f9e0 (diff) | |
download | pleroma-b3b0855456a92351667a50c8ea77f328bded76ca.tar.gz pleroma-b3b0855456a92351667a50c8ea77f328bded76ca.zip |
Merge branch '534_federation_targets_reachability' into 'develop'
[#534] Unreachable federation targets retirement
Closes #534
See merge request pleroma/pleroma!703
Diffstat (limited to 'priv/repo/migrations')
-rw-r--r-- | priv/repo/migrations/20190123125546_create_instances.exs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/priv/repo/migrations/20190123125546_create_instances.exs b/priv/repo/migrations/20190123125546_create_instances.exs new file mode 100644 index 000000000..b527ad7ec --- /dev/null +++ b/priv/repo/migrations/20190123125546_create_instances.exs @@ -0,0 +1,15 @@ +defmodule Pleroma.Repo.Migrations.CreateInstances do + use Ecto.Migration + + def change do + create table(:instances) do + add :host, :string + add :unreachable_since, :naive_datetime + + timestamps() + end + + create unique_index(:instances, [:host]) + create index(:instances, [:unreachable_since]) + end +end |