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:
parent
bee8b64fa7
commit
ad79912a07
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue