add activities likes index, fixes favorites API call

This commit is contained in:
William Pitcock 2019-01-27 15:15:33 +00:00
parent 5eb81d2c72
commit 15d12a69a4

View File

@ -0,0 +1,8 @@
defmodule Pleroma.Repo.Migrations.AddActivitiesLikesIndex do
use Ecto.Migration
@disable_ddl_transaction true
def change do
create index(:activities, ["((data #> '{\"object\",\"likes\"}'))"], concurrently: true, name: :activities_likes, using: :gin)
end
end