Merge branch 'feature/lists' into 'develop'
Mastodon List API See merge request pleroma/pleroma!138
This commit is contained in:
commit
f3a71f2986
8 changed files with 439 additions and 2 deletions
15
priv/repo/migrations/20180429094642_create_lists.exs
Normal file
15
priv/repo/migrations/20180429094642_create_lists.exs
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue