diff options
author | marcin mikołajczak <git@mkljczk.pl> | 2022-01-18 14:57:48 +0100 |
---|---|---|
committer | marcin mikołajczak <git@mkljczk.pl> | 2022-01-18 14:57:48 +0100 |
commit | b108b0565076d677a90ff38ec8926e1f3153b7f6 (patch) | |
tree | 1d3bd0b66d4bd29fce875b3157005503ff7c4fd5 /priv/repo | |
parent | 84dcb55b0f1ef759eb27ee3e6a756c32f035981b (diff) | |
download | pleroma-b108b0565076d677a90ff38ec8926e1f3153b7f6.tar.gz |
Birth dates, birthday reminders API, allow instance admins to require minimum age
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'priv/repo')
-rw-r--r-- | priv/repo/migrations/29220116183110_add_birth_date_to_users.exs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/priv/repo/migrations/29220116183110_add_birth_date_to_users.exs b/priv/repo/migrations/29220116183110_add_birth_date_to_users.exs new file mode 100644 index 000000000..f610eeb10 --- /dev/null +++ b/priv/repo/migrations/29220116183110_add_birth_date_to_users.exs @@ -0,0 +1,10 @@ +defmodule Pleroma.Repo.Migrations.AddBirthDateToUsers do + use Ecto.Migration + + def change do + alter table(:users) do + add_if_not_exists(:birth_date, :date) + add_if_not_exists(:hide_birth_date, :boolean, default: false, null: false) + end + end +end |