blob: 400a432ffeb2981c6e19c096fb27820970233f3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
defmodule Pleroma.Repo.Migrations.AddContextIndex do
use Ecto.Migration
@disable_ddl_transaction true
def change do
create(
index(:activities, ["(data->>'type')", "(data->>'context')"],
name: :activities_context_index,
concurrently: true
)
)
end
end
|