aboutsummaryrefslogtreecommitdiff
path: root/priv/repo
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2022-01-18 14:57:48 +0100
committermarcin mikołajczak <git@mkljczk.pl>2022-01-18 14:57:48 +0100
commitb108b0565076d677a90ff38ec8926e1f3153b7f6 (patch)
tree1d3bd0b66d4bd29fce875b3157005503ff7c4fd5 /priv/repo
parent84dcb55b0f1ef759eb27ee3e6a756c32f035981b (diff)
downloadpleroma-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.exs10
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