Add allow_following_move setting to User

This commit is contained in:
Egor Kislitsyn 2019-11-12 18:36:50 +07:00
commit e6d7e27bd6
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
10 changed files with 59 additions and 30 deletions

View file

@ -1,9 +0,0 @@
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

View file

@ -0,0 +1,10 @@
defmodule Pleroma.Repo.Migrations.AddMoveSupportToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add(:also_known_as, {:array, :string}, default: [], null: false)
add(:allow_following_move, :boolean, default: true, null: false)
end
end
end