blob: 4dcfe6de903ae976b80c9aa47049c4a667b8050c (
plain)
1
2
3
4
5
6
7
8
|
defmodule Pleroma.Repo.Migrations.ChangeNotificationUserIndex do
use Ecto.Migration
def change do
drop_if_exists(index(:notifications, [:user_id]))
create_if_not_exists(index(:notifications, [:user_id, "id desc nulls last"]))
end
end
|