diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-11-12 18:36:50 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-11-12 18:45:28 +0700 |
commit | e6d7e27bd603806e96dfc2774f90cadb3cf73a8c (patch) | |
tree | 96b9c5de9bc8c43ee3bcd1e449bb19cec950a6e6 /priv/repo/migrations | |
parent | 61fc739ab8917ccb5a12d6ab6db6130dc231990b (diff) | |
download | pleroma-e6d7e27bd603806e96dfc2774f90cadb3cf73a8c.tar.gz |
Add `allow_following_move` setting to User
Diffstat (limited to 'priv/repo/migrations')
-rw-r--r-- | priv/repo/migrations/20191025081729_add_also_known_as_to_users.exs | 9 | ||||
-rw-r--r-- | priv/repo/migrations/20191025081729_add_move_support_to_users.exs | 10 |
2 files changed, 10 insertions, 9 deletions
diff --git a/priv/repo/migrations/20191025081729_add_also_known_as_to_users.exs b/priv/repo/migrations/20191025081729_add_also_known_as_to_users.exs deleted file mode 100644 index 3d9e0a3cf..000000000 --- a/priv/repo/migrations/20191025081729_add_also_known_as_to_users.exs +++ /dev/null @@ -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 diff --git a/priv/repo/migrations/20191025081729_add_move_support_to_users.exs b/priv/repo/migrations/20191025081729_add_move_support_to_users.exs new file mode 100644 index 000000000..580b9eb0f --- /dev/null +++ b/priv/repo/migrations/20191025081729_add_move_support_to_users.exs @@ -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 |