summaryrefslogtreecommitdiff
path: root/priv/repo/migrations
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-05-26 16:00:59 +0200
committerlain <lain@soykaf.club>2018-05-26 16:00:59 +0200
commit4b3ec5351466f8615b32e62cc4e6215f8a80b105 (patch)
treee46842eac5d8255858a113f71bdf42bfd75e4436 /priv/repo/migrations
parent4fd9df100f61dfe4731934eca86500472d866f60 (diff)
parent6138b297836f459e4fe5d21dfed30ddd9397b6d4 (diff)
downloadpleroma-4b3ec5351466f8615b32e62cc4e6215f8a80b105.tar.gz
pleroma-4b3ec5351466f8615b32e62cc4e6215f8a80b105.zip
Merge branch 'develop' into csaurus/pleroma-feature/mstdn-direct-api
Diffstat (limited to 'priv/repo/migrations')
-rw-r--r--priv/repo/migrations/20180429094642_create_lists.exs15
1 files changed, 15 insertions, 0 deletions
diff --git a/priv/repo/migrations/20180429094642_create_lists.exs b/priv/repo/migrations/20180429094642_create_lists.exs
new file mode 100644
index 000000000..64c62250e
--- /dev/null
+++ b/priv/repo/migrations/20180429094642_create_lists.exs
@@ -0,0 +1,15 @@
+defmodule Pleroma.Repo.Migrations.CreateLists do
+ use Ecto.Migration
+
+ def change do
+ create table(:lists) do
+ add :user_id, references(:users, on_delete: :delete_all)
+ add :title, :string
+ add :following, {:array, :string}
+
+ timestamps()
+ end
+
+ create index(:lists, [:user_id])
+ end
+end