Commit 61bae9a4 authored by marcin mikołajczak's avatar marcin mikołajczak
Browse files

Create index for `show_birthday`


Signed-off-by: marcin mikołajczak's avatarmarcin mikołajczak <git@mkljczk.pl>
parent e3d394ee
defmodule Pleroma.Repo.Migrations.AddBirthDateToUsers do
defmodule Pleroma.Repo.Migrations.AddBirthdayToUsers do
use Ecto.Migration
def change do
......@@ -6,5 +6,7 @@ def change do
add_if_not_exists(:birthday, :date)
add_if_not_exists(:show_birthday, :boolean, default: false, null: false)
end
create_if_not_exists(index(:users, [:show_birthday]))
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment