summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20170427054757_add_user_and_hub.exs
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-04-27 09:44:20 +0200
committerRoger Braun <roger@rogerbraun.net>2017-04-27 09:44:20 +0200
commite8a311ecffe1fb19a3d194b1c5628853263909a7 (patch)
treedab2f0d4ad1787be474b057ac520ba05ef7336ba /priv/repo/migrations/20170427054757_add_user_and_hub.exs
parentd1dce56a85e041f78e1d50900a0c9591610de2b9 (diff)
downloadpleroma-e8a311ecffe1fb19a3d194b1c5628853263909a7.tar.gz
pleroma-e8a311ecffe1fb19a3d194b1c5628853263909a7.zip
Add user and hub to websub client subscriptions.
Diffstat (limited to 'priv/repo/migrations/20170427054757_add_user_and_hub.exs')
-rw-r--r--priv/repo/migrations/20170427054757_add_user_and_hub.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/priv/repo/migrations/20170427054757_add_user_and_hub.exs b/priv/repo/migrations/20170427054757_add_user_and_hub.exs
new file mode 100644
index 000000000..4f9a520bd
--- /dev/null
+++ b/priv/repo/migrations/20170427054757_add_user_and_hub.exs
@@ -0,0 +1,10 @@
+defmodule Pleroma.Repo.Migrations.AddUserAndHub do
+ use Ecto.Migration
+
+ def change do
+ alter table(:websub_client_subscriptions) do
+ add :hub, :string
+ add :user_id, references(:users)
+ end
+ end
+end