1
0
Fork 0
mirror of https://git.pleroma.social/pleroma/pleroma.git synced 2025-04-09 12:34:09 +00:00

Create the index concurrently

This commit is contained in:
Lain Soykaf 2025-03-14 19:53:06 +04:00
parent bee8b64fa7
commit ad79912a07

View file

@ -1,7 +1,14 @@
defmodule Pleroma.Repo.Migrations.AddActivitiesActorTypeIndex do
use Ecto.Migration
@disable_ddl_transaction true
def change do
create(index(:activities, ["actor", "(data ->> 'type'::text)", "id DESC NULLS LAST"]))
create(
index(
:activities,
["actor", "(data ->> 'type'::text)", "id DESC NULLS LAST"],
concurrently: true
)
)
end
end