akkoma/priv/repo/migrations/29220116183110_add_birth_date_to_users.exs

11 lines
261 B
Elixir
Raw Normal View History

defmodule Pleroma.Repo.Migrations.AddBirthDateToUsers do
use Ecto.Migration
def change do
alter table(:users) do
2022-01-22 12:21:55 -07:00
add_if_not_exists(:birthday, :date)
add_if_not_exists(:show_birthday, :boolean, default: false, null: false)
end
end
end