Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

12 wiersze
440B

  1. defmodule Pleroma.Repo.Migrations.AddFollowingRelationshipsFollowingIdIndex do
  2. use Ecto.Migration
  3. # [:follower_index] index is useless because of [:follower_id, :following_id] index
  4. # [:following_id] index makes sense because of user's followers-targeted queries
  5. def change do
  6. drop_if_exists(index(:following_relationships, [:follower_id]))
  7. create_if_not_exists(index(:following_relationships, [:following_id]))
  8. end
  9. end