summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20170906120646_add_mastodon_apps.exs
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-09-06 19:06:25 +0200
committerRoger Braun <roger@rogerbraun.net>2017-09-06 19:06:25 +0200
commit2a298d70f9938d1b6d5af04d8b8863fdd3299f46 (patch)
tree7029989860d19246a0840a7991db46ad5b3207df /priv/repo/migrations/20170906120646_add_mastodon_apps.exs
parent4e785df984bed0e2ffc3f5a773a961ed3efd4760 (diff)
downloadpleroma-2a298d70f9938d1b6d5af04d8b8863fdd3299f46.tar.gz
pleroma-2a298d70f9938d1b6d5af04d8b8863fdd3299f46.zip
Add very basic oauth and mastodon api support.
Diffstat (limited to 'priv/repo/migrations/20170906120646_add_mastodon_apps.exs')
-rw-r--r--priv/repo/migrations/20170906120646_add_mastodon_apps.exs16
1 files changed, 16 insertions, 0 deletions
diff --git a/priv/repo/migrations/20170906120646_add_mastodon_apps.exs b/priv/repo/migrations/20170906120646_add_mastodon_apps.exs
new file mode 100644
index 000000000..d3dd317dd
--- /dev/null
+++ b/priv/repo/migrations/20170906120646_add_mastodon_apps.exs
@@ -0,0 +1,16 @@
+defmodule Pleroma.Repo.Migrations.AddMastodonApps do
+ use Ecto.Migration
+
+ def change do
+ create table(:apps) do
+ add :client_name, :string
+ add :redirect_uris, :string
+ add :scopes, :string
+ add :website, :string
+ add :client_id, :string
+ add :client_secret, :string
+
+ timestamps()
+ end
+ end
+end