summaryrefslogtreecommitdiff
path: root/priv/repo/migrations
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-02-04 20:50:28 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-02-04 20:50:28 +0700
commit3a3a3996b7a37d281745586fa40bbabd5299a1ce (patch)
tree843d5295c820fef6d5112677dd1145b3757ad2ac /priv/repo/migrations
parent58e250d9d27205116df5634d909ec1e43ea55286 (diff)
parent89762ad23034668f7440c9fb238dcf270e8c2e59 (diff)
downloadpleroma-3a3a3996b7a37d281745586fa40bbabd5299a1ce.tar.gz
pleroma-3a3a3996b7a37d281745586fa40bbabd5299a1ce.zip
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into feature/jobs
# Conflicts: # lib/pleroma/web/activity_pub/activity_pub.ex # lib/pleroma/web/federator/federator.ex
Diffstat (limited to 'priv/repo/migrations')
-rw-r--r--priv/repo/migrations/20181214121049_add_bookmarks_to_users.exs9
-rw-r--r--priv/repo/migrations/20190123125546_create_instances.exs15
2 files changed, 24 insertions, 0 deletions
diff --git a/priv/repo/migrations/20181214121049_add_bookmarks_to_users.exs b/priv/repo/migrations/20181214121049_add_bookmarks_to_users.exs
new file mode 100644
index 000000000..55e97ae0e
--- /dev/null
+++ b/priv/repo/migrations/20181214121049_add_bookmarks_to_users.exs
@@ -0,0 +1,9 @@
+defmodule Pleroma.Repo.Migrations.AddBookmarksToUsers do
+ use Ecto.Migration
+
+ def change do
+ alter table(:users) do
+ add :bookmarks, {:array, :string}, null: false, default: []
+ end
+ end
+end
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