aboutsummaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-10-21 11:58:22 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-10-21 11:58:22 +0300
commit7c7f90bc4f361b8bf4b49790640a4aa490ee619f (patch)
treec74d52d098f75f93885dafe8911b9580d97657ab /priv
parenta11a7176d59deafa08a865d6e0950b9b9c540f18 (diff)
downloadpleroma-7c7f90bc4f361b8bf4b49790640a4aa490ee619f.tar.gz
[#1304] Merged `develop`, handled User.Info.invisible.
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20191009154608_copy_users_info_fields_to_users.exs3
-rw-r--r--priv/repo/migrations/20191017225002_drop_websub_tables.exs4
2 files changed, 6 insertions, 1 deletions
diff --git a/priv/repo/migrations/20191009154608_copy_users_info_fields_to_users.exs b/priv/repo/migrations/20191009154608_copy_users_info_fields_to_users.exs
index 72c852d2b..87b1e2c8c 100644
--- a/priv/repo/migrations/20191009154608_copy_users_info_fields_to_users.exs
+++ b/priv/repo/migrations/20191009154608_copy_users_info_fields_to_users.exs
@@ -42,6 +42,7 @@ defmodule Pleroma.Repo.Migrations.CopyUsersInfoFieldsToUsers do
:fields,
:raw_fields,
:discoverable,
+ :invisible,
:skip_thread_containment,
:notification_settings
]
@@ -77,6 +78,7 @@ defmodule Pleroma.Repo.Migrations.CopyUsersInfoFieldsToUsers do
:hide_follows,
:hide_favorites,
:discoverable,
+ :invisible,
:skip_thread_containment
]
@@ -132,6 +134,7 @@ defmodule Pleroma.Repo.Migrations.CopyUsersInfoFieldsToUsers do
add(:fields, {:array, :map}, default: nil)
add(:raw_fields, {:array, :map}, default: [])
add(:discoverable, :boolean, default: false, null: false)
+ add(:invisible, :boolean, default: false, null: false)
add(:notification_settings, :map, default: %{})
add(:skip_thread_containment, :boolean, default: false, null: false)
end
diff --git a/priv/repo/migrations/20191017225002_drop_websub_tables.exs b/priv/repo/migrations/20191017225002_drop_websub_tables.exs
index 9e483b2a1..4cf67a59c 100644
--- a/priv/repo/migrations/20191017225002_drop_websub_tables.exs
+++ b/priv/repo/migrations/20191017225002_drop_websub_tables.exs
@@ -1,8 +1,10 @@
defmodule Pleroma.Repo.Migrations.DropWebsubTables do
use Ecto.Migration
- def change do
+ def up do
drop_if_exists(table(:websub_client_subscriptions))
drop_if_exists(table(:websub_server_subscriptions))
end
+
+ def down, do: :noop
end