Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
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