Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

20 líneas
433B

  1. defmodule Pleroma.Repo.Migrations.AddFTSIndexToObjects do
  2. use Ecto.Migration
  3. def change do
  4. drop_if_exists(
  5. index(:activities, ["(to_tsvector('english', data->'object'->>'content'))"],
  6. using: :gin,
  7. name: :activities_fts
  8. )
  9. )
  10. create_if_not_exists(
  11. index(:objects, ["(to_tsvector('english', data->>'content'))"],
  12. using: :gin,
  13. name: :objects_fts
  14. )
  15. )
  16. end
  17. end