Add index for assigned_account
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
9747233375
commit
c8fc411b77
1 changed files with 9 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
defmodule Pleroma.Repo.Migrations.AddActivityAssignedAccountIndex do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create_if_not_exists(
|
||||
index(:activities, ["(data->>'assigned_account')"], name: :activities_assigned_account_index)
|
||||
)
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue