forked from AkkomaGang/akkoma
Merge branch 'hotfix/favorites-index' into 'develop'
add activities likes index, fixes favorites API call See merge request pleroma/pleroma!722
This commit is contained in:
commit
00fd9c9e5c
1 changed files with 8 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue