2018-05-13 10:54:08 +00:00
|
|
|
defmodule Pleroma.Repo.Migrations.ModifyActivityIndex do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
2024-06-19 00:05:38 +00:00
|
|
|
create(index(:activities, ["id desc nulls last", "local"]))
|
2019-10-08 12:16:39 +00:00
|
|
|
drop_if_exists(index(:activities, ["id desc nulls last"]))
|
2018-05-13 10:54:08 +00:00
|
|
|
end
|
|
|
|
end
|