Add field to user schema for controlling disclosure of client details

This commit is contained in:
Mark Felder 2021-02-18 16:43:41 -06:00
commit 83301fe61a
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,15 @@
defmodule Pleroma.Repo.Migrations.AddDiscloseClientToUsers do
use Ecto.Migration
def up do
alter table(:users) do
add(:disclose_client, :boolean, default: true)
end
end
def down do
alter table(:users) do
remove(:disclose_client)
end
end
end