logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

20200731165800_add_hashtags_index_to_objects.exs (317B)


  1. defmodule Pleroma.Repo.Migrations.AddHashtagsIndexToObjects do
  2. use Ecto.Migration
  3. def change do
  4. drop_if_exists(index(:objects, ["(data->'tag')"], using: :gin, name: :objects_tags))
  5. create_if_not_exists(
  6. index(:objects, ["(data->'hashtags')"], using: :gin, name: :objects_hashtags)
  7. )
  8. end
  9. end