Merge pull request 'Add dark and light theme mode to docs, detection, and button...
[akkoma] / priv / repo / migrations / 20170912114248_add_context_index.exs
1 defmodule Pleroma.Repo.Migrations.AddContextIndex do
2 use Ecto.Migration
3 @disable_ddl_transaction true
4
5 def change do
6 create(
7 index(:activities, ["(data->>'type')", "(data->>'context')"],
8 name: :activities_context_index,
9 concurrently: true
10 )
11 )
12 end
13 end