summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/29220116183110_add_birth_date_to_users.exs
diff options
context:
space:
mode:
Diffstat (limited to 'priv/repo/migrations/29220116183110_add_birth_date_to_users.exs')
-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