Add basic fields to support remote users.
authorRoger Braun <roger@rogerbraun.net>
Mon, 24 Apr 2017 06:48:52 +0000 (08:48 +0200)
committerRoger Braun <roger@rogerbraun.net>
Mon, 24 Apr 2017 06:49:09 +0000 (08:49 +0200)
lib/pleroma/user.ex
priv/repo/migrations/20170423154511_add_fields_to_users.exs [new file with mode: 0644]

index 3ce07d510b433eb1a699273dbe0f8990a4caaf0b..160acbdb923689f33bd6b82a96a7e4c1188ea2de 100644 (file)
@@ -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
diff --git a/priv/repo/migrations/20170423154511_add_fields_to_users.exs b/priv/repo/migrations/20170423154511_add_fields_to_users.exs
new file mode 100644 (file)
index 0000000..84de74b
--- /dev/null
@@ -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