aboutsummaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-10-25 19:14:18 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-10-25 19:14:18 +0700
commitb777083f3f396a7d8c357ec968f72679befc691c (patch)
tree4038d850ce00c5372541107537069537261ac823 /priv
parent96cd66ac1bdadc0eefca6d63eb01e814690dba52 (diff)
downloadpleroma-b777083f3f396a7d8c357ec968f72679befc691c.tar.gz
Add `also_known_as` field to Pleroma.User
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20191025081729_add_also_known_as_to_users.exs9
-rw-r--r--priv/static/schemas/litepub-0.1.jsonld4
2 files changed, 13 insertions, 0 deletions
diff --git a/priv/repo/migrations/20191025081729_add_also_known_as_to_users.exs b/priv/repo/migrations/20191025081729_add_also_known_as_to_users.exs
new file mode 100644
index 000000000..3d9e0a3cf
--- /dev/null
+++ b/priv/repo/migrations/20191025081729_add_also_known_as_to_users.exs
@@ -0,0 +1,9 @@
+defmodule Pleroma.Repo.Migrations.AddAlsoKnownAsToUsers do
+ use Ecto.Migration
+
+ def change do
+ alter table(:users) do
+ add(:also_known_as, {:array, :string}, default: [])
+ end
+ end
+end
diff --git a/priv/static/schemas/litepub-0.1.jsonld b/priv/static/schemas/litepub-0.1.jsonld
index c8e69cab5..509df4bb7 100644
--- a/priv/static/schemas/litepub-0.1.jsonld
+++ b/priv/static/schemas/litepub-0.1.jsonld
@@ -28,6 +28,10 @@
"oauthRegistrationEndpoint": {
"@id": "litepub:oauthRegistrationEndpoint",
"@type": "@id"
+ },
+ "alsoKnownAs": {
+ "@id": "as:alsoKnownAs",
+ "@type": "@id"
}
}
]