mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 16:16:34 +00:00
Birthdays: users_birthday_month_day_index
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
61bae9a407
commit
249fe88d12
1 changed files with 11 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
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
|
Loading…
Reference in a new issue