mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-07-05 05:15:52 +00:00
12 lines
273 B
Elixir
12 lines
273 B
Elixir
defmodule Pleroma.Repo.Migrations.AddBirthdayMonthDayIndexToUsers do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create(
|
|
index(:users, ["date_part('month', birthday)", "date_part('day', birthday)"],
|
|
name: :users_birthday_month_day_index
|
|
)
|
|
)
|
|
end
|
|
end
|