This repository has been archived on 2020-02-06. You can view files and clone it, but cannot push or open issues/pull-requests.
|
defmodule Pleroma.Repo.Migrations.AddLikesIndexToObjects do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create_if_not_exists index(:objects, ["(data->'likes')"], using: :gin, name: :objects_likes)
|
|
end
|
|
end
|