Add basic fields to support remote users.
This commit is contained in:
parent
7424310e14
commit
43d7a4b2cf
2 changed files with 12 additions and 0 deletions
|
@ -15,6 +15,8 @@ defmodule Pleroma.User do
|
||||||
field :following, { :array, :string }, default: []
|
field :following, { :array, :string }, default: []
|
||||||
field :ap_id, :string
|
field :ap_id, :string
|
||||||
field :avatar, :map
|
field :avatar, :map
|
||||||
|
field :local, :boolean, default: true
|
||||||
|
field :info, :map
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
|
|
10
priv/repo/migrations/20170423154511_add_fields_to_users.exs
Normal file
10
priv/repo/migrations/20170423154511_add_fields_to_users.exs
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
defmodule Pleroma.Repo.Migrations.AddFieldsToUsers do
|
||||||
|
use Ecto.Migration
|
||||||
|
|
||||||
|
def change do
|
||||||
|
alter table(:users) do
|
||||||
|
add :local, :boolean, default: true
|
||||||
|
add :info, :map
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue