diff options
author | marcin mikołajczak <git@mkljczk.pl> | 2022-01-25 10:45:32 +0100 |
---|---|---|
committer | marcin mikołajczak <git@mkljczk.pl> | 2022-01-25 11:49:42 +0100 |
commit | 249fe88d12345c1c93f1812871cd70424b9e9a0d (patch) | |
tree | c44180dab4d9e0b104c6b3745cfacb0f56ad4fb5 | |
parent | 61bae9a407ae9480e46e3a33d0b7d1f4c940b02c (diff) | |
download | pleroma-249fe88d12345c1c93f1812871cd70424b9e9a0d.tar.gz |
Birthdays: users_birthday_month_day_index
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
-rw-r--r-- | priv/repo/migrations/20220125104429_add_birthday_month_day_index_to_users.exs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/priv/repo/migrations/20220125104429_add_birthday_month_day_index_to_users.exs b/priv/repo/migrations/20220125104429_add_birthday_month_day_index_to_users.exs new file mode 100644 index 000000000..8ce4c77c5 --- /dev/null +++ b/priv/repo/migrations/20220125104429_add_birthday_month_day_index_to_users.exs @@ -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 |