This website works better with JavaScript.
首頁
探索
lain.church
說明
註冊
登入
squeegily
/
pleroma
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
42
Wiki
Activity
瀏覽代碼
Add basic fields to support remote users.
tags/v0.9.9
Roger Braun
7 年之前
父節點
7424310e14
當前提交
43d7a4b2cf
共有
2 個文件被更改
,包括
12 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
lib/pleroma/user.ex
+10
-0
priv/repo/migrations/20170423154511_add_fields_to_users.exs
+ 2
- 0
lib/pleroma/user.ex
查看文件
@@ -15,6 +15,8 @@ defmodule Pleroma.User do
field :following, { :array, :string }, default: []
field :ap_id, :string
field :avatar, :map
field :local, :boolean, default: true
field :info, :map
timestamps()
end
+ 10
- 0
priv/repo/migrations/20170423154511_add_fields_to_users.exs
查看文件
@@ -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
Write
Preview
Loading…
取消
儲存